Package com.tagtraum.beatunes.songtable
Enum SongTableColumn
- java.lang.Object
-
- java.lang.Enum<SongTableColumn>
-
- com.tagtraum.beatunes.songtable.SongTableColumn
-
- All Implemented Interfaces:
SortableTableColumn.ColumnDescriptor
,Serializable
,Comparable<SongTableColumn>
public enum SongTableColumn extends Enum<SongTableColumn> implements SortableTableColumn.ColumnDescriptor
SongTable columns used inSongTableColumnModel
.- Author:
- Hendrik Schreiber
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SongTableColumn
get(String property)
BeaTunesTableCellRenderer
getDefaultTableCellRenderer()
DefaultBeaTunesTableCellRenderer
for this column.Object
getFirstHeaderValue()
Object
getHeaderValue()
String
getId()
int
getIndex()
int
getPreferredIndex()
Property<?>
getProperty()
Gets the associatedProperty
.String
getPropertyName()
Name of the property described in this column.String
getSortId(int index)
String[]
getSortIds()
boolean
isEditable()
boolean
isMovable()
boolean
isSortable()
static void
main(String[] args)
void
nextSortConfig()
void
setDefaultTableCellRenderer(BeaTunesTableCellRenderer defaultTableCellRenderer)
Sets the default renderer for this column.int
sortConfigs()
static SongTableColumn
valueOf(String name)
Returns the enum constant of this type with the specified name.static SongTableColumn[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface com.tagtraum.beatunes.filter.SortableTableColumn.ColumnDescriptor
createDefaultTableCellRenderer, createDefaultTableCellRenderer
-
-
-
-
Enum Constant Detail
-
NUMBER
public static final SongTableColumn NUMBER
-
PROTEKTED
public static final SongTableColumn PROTEKTED
-
NAME
public static final SongTableColumn NAME
-
ARTIST
public static final SongTableColumn ARTIST
-
ALBUM
public static final SongTableColumn ALBUM
-
ALBUM_ARTIST
public static final SongTableColumn ALBUM_ARTIST
-
TEMPO
public static final SongTableColumn TEMPO
-
TIMBRE_COLOR
public static final SongTableColumn TIMBRE_COLOR
-
KEY
public static final SongTableColumn KEY
-
TIME
public static final SongTableColumn TIME
-
GENRE
public static final SongTableColumn GENRE
-
TAGS
public static final SongTableColumn TAGS
-
YEAR
public static final SongTableColumn YEAR
-
LANGUAGE
public static final SongTableColumn LANGUAGE
-
GROUPING
public static final SongTableColumn GROUPING
-
PLAY_COUNT
public static final SongTableColumn PLAY_COUNT
-
PLAY_FREQUENCY
public static final SongTableColumn PLAY_FREQUENCY
-
PLAY_SKIP_RATIO
public static final SongTableColumn PLAY_SKIP_RATIO
-
SKIP_COUNT
public static final SongTableColumn SKIP_COUNT
-
BIT_RATE
public static final SongTableColumn BIT_RATE
-
COMMENT
public static final SongTableColumn COMMENT
-
COMPOSER
public static final SongTableColumn COMPOSER
-
DATE_ADDED
public static final SongTableColumn DATE_ADDED
-
DATE_MODIFIED
public static final SongTableColumn DATE_MODIFIED
-
DISC
public static final SongTableColumn DISC
-
KIND
public static final SongTableColumn KIND
-
LAST_PLAYED
public static final SongTableColumn LAST_PLAYED
-
MY_RATING
public static final SongTableColumn MY_RATING
-
ALBUM_RATING
public static final SongTableColumn ALBUM_RATING
-
SAMPLE_RATE
public static final SongTableColumn SAMPLE_RATE
-
SEASON
public static final SongTableColumn SEASON
-
SIZE
public static final SongTableColumn SIZE
-
TRACK
public static final SongTableColumn TRACK
-
EPISODE
public static final SongTableColumn EPISODE
-
SHOW
public static final SongTableColumn SHOW
-
LOCATION
public static final SongTableColumn LOCATION
-
SORT_NAME
public static final SongTableColumn SORT_NAME
-
SORT_ARTIST
public static final SongTableColumn SORT_ARTIST
-
SORT_ALBUM_ARTIST
public static final SongTableColumn SORT_ALBUM_ARTIST
-
SORT_ALBUM
public static final SongTableColumn SORT_ALBUM
-
SORT_COMPOSER
public static final SongTableColumn SORT_COMPOSER
-
SORT_SHOW
public static final SongTableColumn SORT_SHOW
-
DISABLED
public static final SongTableColumn DISABLED
-
ISSUE
public static final SongTableColumn ISSUE
-
MPM
public static final SongTableColumn MPM
-
TIME_SIGNATURE
public static final SongTableColumn TIME_SIGNATURE
-
MOOD
public static final SongTableColumn MOOD
-
TUNING
public static final SongTableColumn TUNING
-
TRACK_REPLAY_GAIN
public static final SongTableColumn TRACK_REPLAY_GAIN
-
ALBUM_REPLAY_GAIN
public static final SongTableColumn ALBUM_REPLAY_GAIN
-
ARTWORK
public static final SongTableColumn ARTWORK
-
TRANSITION
public static final SongTableColumn TRANSITION
-
COMPILATION
public static final SongTableColumn COMPILATION
-
MEDIA_KIND
public static final SongTableColumn MEDIA_KIND
-
LIKING
public static final SongTableColumn LIKING
-
INSTRUMENTATION
public static final SongTableColumn INSTRUMENTATION
-
DANCEABILITY
public static final SongTableColumn DANCEABILITY
-
CUSTOM1
public static final SongTableColumn CUSTOM1
-
CUSTOM2
public static final SongTableColumn CUSTOM2
-
CUSTOM3
public static final SongTableColumn CUSTOM3
-
CUSTOM4
public static final SongTableColumn CUSTOM4
-
CUSTOM5
public static final SongTableColumn CUSTOM5
-
WORK
public static final SongTableColumn WORK
-
MOVEMENT
public static final SongTableColumn MOVEMENT
-
MOVEMENT_NUMBER
public static final SongTableColumn MOVEMENT_NUMBER
-
TEMPO_TIMBRE_COLOR
public static final SongTableColumn TEMPO_TIMBRE_COLOR
-
DATE_ANALYZED
public static final SongTableColumn DATE_ANALYZED
-
DESCRIPTION
public static final SongTableColumn DESCRIPTION
-
-
Method Detail
-
values
public static SongTableColumn[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SongTableColumn c : SongTableColumn.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SongTableColumn valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isEditable
public boolean isEditable()
-
get
public static SongTableColumn get(String property)
-
getHeaderValue
public Object getHeaderValue()
- Specified by:
getHeaderValue
in interfaceSortableTableColumn.ColumnDescriptor
-
getFirstHeaderValue
public Object getFirstHeaderValue()
-
getIndex
public int getIndex()
- Specified by:
getIndex
in interfaceSortableTableColumn.ColumnDescriptor
-
getPropertyName
public String getPropertyName()
Description copied from interface:SortableTableColumn.ColumnDescriptor
Name of the property described in this column.- Specified by:
getPropertyName
in interfaceSortableTableColumn.ColumnDescriptor
- Returns:
- property name
-
getProperty
public Property<?> getProperty()
Description copied from interface:SortableTableColumn.ColumnDescriptor
Gets the associatedProperty
.- Specified by:
getProperty
in interfaceSortableTableColumn.ColumnDescriptor
- Returns:
- property
-
getId
public String getId()
- Specified by:
getId
in interfaceSortableTableColumn.ColumnDescriptor
-
getSortId
public String getSortId(int index)
- Specified by:
getSortId
in interfaceSortableTableColumn.ColumnDescriptor
-
getSortIds
public String[] getSortIds()
- Specified by:
getSortIds
in interfaceSortableTableColumn.ColumnDescriptor
-
isSortable
public boolean isSortable()
- Specified by:
isSortable
in interfaceSortableTableColumn.ColumnDescriptor
-
isMovable
public boolean isMovable()
- Specified by:
isMovable
in interfaceSortableTableColumn.ColumnDescriptor
-
getPreferredIndex
public int getPreferredIndex()
- Specified by:
getPreferredIndex
in interfaceSortableTableColumn.ColumnDescriptor
-
sortConfigs
public int sortConfigs()
- Specified by:
sortConfigs
in interfaceSortableTableColumn.ColumnDescriptor
-
nextSortConfig
public void nextSortConfig()
- Specified by:
nextSortConfig
in interfaceSortableTableColumn.ColumnDescriptor
-
getDefaultTableCellRenderer
public BeaTunesTableCellRenderer getDefaultTableCellRenderer()
DefaultBeaTunesTableCellRenderer
for this column.- Specified by:
getDefaultTableCellRenderer
in interfaceSortableTableColumn.ColumnDescriptor
- Returns:
- renderer
-
setDefaultTableCellRenderer
public void setDefaultTableCellRenderer(BeaTunesTableCellRenderer defaultTableCellRenderer)
Sets the default renderer for this column.- Parameters:
defaultTableCellRenderer
- renderer
-
main
public static void main(String[] args)
-
-