Class InstancesColumnComboBox.ColumnContainer
- java.lang.Object
-
- adams.gui.visualization.instances.InstancesColumnComboBox.ColumnContainer
-
- All Implemented Interfaces:
Serializable
,Comparable<InstancesColumnComboBox.ColumnContainer>
- Enclosing class:
- InstancesColumnComboBox
public static class InstancesColumnComboBox.ColumnContainer extends Object implements Serializable, Comparable<InstancesColumnComboBox.ColumnContainer>
Container for storing column name and- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
m_Column
the column index.protected String
m_Name
the column name.protected String
m_NameLowerCase
the lower case name.
-
Constructor Summary
Constructors Constructor Description ColumnContainer(String name, int column)
Initializes the container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(InstancesColumnComboBox.ColumnContainer o)
Compares itself to the other container.int
getColumn()
Returns the column index.String
getName()
Returns the name of the column.String
getNameLowerCase()
Returns the name of the column in lowercase.String
toString()
Returns the name and index of the column as string representation.
-
-
-
Constructor Detail
-
ColumnContainer
public ColumnContainer(String name, int column)
Initializes the container.- Parameters:
name
- the name of the columncolumn
- the column index
-
-
Method Detail
-
getName
public String getName()
Returns the name of the column.- Returns:
- the name
-
getNameLowerCase
public String getNameLowerCase()
Returns the name of the column in lowercase.- Returns:
- the name in lowercase
-
getColumn
public int getColumn()
Returns the column index.- Returns:
- the index
-
compareTo
public int compareTo(InstancesColumnComboBox.ColumnContainer o)
Compares itself to the other container.- Specified by:
compareTo
in interfaceComparable<InstancesColumnComboBox.ColumnContainer>
- Parameters:
o
- the other container to compare against- Returns:
- less than zero, zero or greater than zero if this container is less than, equal or greater than the other one
-
-