|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.atunes.gui.views.controls.playList.Column
public abstract class Column
This class represents a column of Play List.
Nested Class Summary | |
---|---|
static class |
Column.ColumnSort
Column sort: ascending or descending |
Constructor Summary | |
---|---|
Column(PlayListColumns.PlayListColumn columnId,
java.lang.String headerText,
java.lang.Class<?> columnClass)
Constructor with columnId, headerText and columnClass. |
Method Summary | |
---|---|
void |
applyColumnBean(ColumnBean bean)
Apply column bean. |
int |
compareTo(Column o)
Compare method. |
int |
getAlignment()
Gets the alignment. |
javax.swing.table.TableCellEditor |
getCellEditor()
Gets the cell editor. |
javax.swing.table.TableCellRenderer |
getCellRenderer()
Gets the cell renderer. |
ColumnBean |
getColumnBean()
Gets the column bean. |
java.lang.Class<?> |
getColumnClass()
Gets the column class. |
PlayListColumns.PlayListColumn |
getColumnId()
Gets the column id. |
java.lang.String |
getColumnName()
Gets the column name. |
java.util.Comparator<AudioObject> |
getComparator()
Return a comparator to sort playlist by this column. |
java.lang.String |
getHeaderText()
Gets the header text. |
int |
getOrder()
Gets the order. |
abstract java.lang.Object |
getValueFor(AudioObject audioObject)
Returns value for a column of an audiofile. |
int |
getWidth()
Gets the width. |
boolean |
isEditable()
Checks if is editable. |
boolean |
isResizable()
Checks if is resizable. |
boolean |
isVisible()
Checks if is visible. |
void |
setAlignment(int alignment)
Sets the alignment. |
void |
setColumnClass(java.lang.Class<?> columnClass)
Sets the column class. |
void |
setColumnId(PlayListColumns.PlayListColumn columnId)
Sets the column id. |
void |
setEditable(boolean editable)
Sets the editable. |
void |
setHeaderText(java.lang.String headerText)
Sets the header text. |
void |
setOrder(int order)
Sets the order. |
void |
setResizable(boolean resizable)
Sets the resizable. |
void |
setValueFor(AudioObject audioObject,
java.lang.Object value)
Sets value for a property of an audio object. |
void |
setVisible(boolean visible)
Sets the visible. |
void |
setWidth(int width)
Sets the width. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Column(PlayListColumns.PlayListColumn columnId, java.lang.String headerText, java.lang.Class<?> columnClass)
columnId
- the column idheaderText
- the header textcolumnClass
- the column classMethod Detail |
---|
public void applyColumnBean(ColumnBean bean)
bean
- the beanpublic int compareTo(Column o)
compareTo
in interface java.lang.Comparable<Column>
o
- the o
public int getAlignment()
public javax.swing.table.TableCellEditor getCellEditor()
public javax.swing.table.TableCellRenderer getCellRenderer()
public ColumnBean getColumnBean()
public java.lang.Class<?> getColumnClass()
public PlayListColumns.PlayListColumn getColumnId()
public java.lang.String getColumnName()
public java.lang.String getHeaderText()
public int getOrder()
public abstract java.lang.Object getValueFor(AudioObject audioObject)
audioObject
- the audio object
public int getWidth()
public boolean isEditable()
public boolean isResizable()
public boolean isVisible()
public void setAlignment(int alignment)
alignment
- the alignment to setpublic void setColumnClass(java.lang.Class<?> columnClass)
columnClass
- the columnClass to setpublic void setColumnId(PlayListColumns.PlayListColumn columnId)
columnId
- the columnId to setpublic void setEditable(boolean editable)
editable
- the editable to setpublic void setHeaderText(java.lang.String headerText)
headerText
- the headerText to setpublic void setOrder(int order)
order
- the order to setpublic void setResizable(boolean resizable)
resizable
- the resizable to setpublic void setValueFor(AudioObject audioObject, java.lang.Object value)
audioObject
- the audio objectvalue
- the valuepublic void setVisible(boolean visible)
visible
- the visible to setpublic void setWidth(int width)
width
- the width to setpublic java.lang.String toString()
toString
in class java.lang.Object
public java.util.Comparator<AudioObject> getComparator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |