Class TableColumnAttributes
- java.lang.Object
-
- com.inductiveautomation.factorypmi.application.components.table.TableColumnAttributes
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.SwingConstants
- Direct Known Subclasses:
AdvancedTableColumnAttributes
,ColumnAttributes
public class TableColumnAttributes extends java.lang.Object implements javax.swing.SwingConstants, java.io.Serializable
This is the base class for the different types of column attributes. It holds some of the most common types of attributes. Reflection and the AttributeMeta annotations are used by the ColumnCustomizer to edit these things visually.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGN_AUTO
static int
ALIGN_BOTTOM
static int
ALIGN_CENTER
static int
ALIGN_LEFT
static int
ALIGN_RIGHT
static int
ALIGN_TOP
protected java.lang.String
dateFormat
protected boolean
editable
protected boolean
hidden
protected int
horizontalAlignment
protected java.lang.String
label
protected java.lang.String
numberFormat
protected java.lang.String
prefix
protected boolean
sortable
protected java.lang.String
suffix
protected boolean
treatAsBoolean
protected int
verticalAlignment
-
Constructor Summary
Constructors Constructor Description TableColumnAttributes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDateFormat()
int
getHorizontalAlignment()
java.lang.String
getLabel()
java.lang.String
getNumberFormat()
java.lang.String
getPrefix()
java.lang.String
getSuffix()
int
getVerticalAlignment()
boolean
isEditable()
boolean
isHidden()
boolean
isSortable()
boolean
isTreatAsBoolean()
void
setDateFormat(java.lang.String dateFormat)
void
setEditable(boolean editable)
void
setHidden(boolean hidden)
void
setHorizontalAlignment(int horizontalAlignment)
void
setLabel(java.lang.String label)
void
setNumberFormat(java.lang.String numberFormat)
void
setPrefix(java.lang.String prefix)
void
setSortable(boolean sortable)
void
setSuffix(java.lang.String suffix)
void
setTreatAsBoolean(boolean treatAsBoolean)
void
setVerticalAlignment(int verticalAlignment)
-
-
-
Field Detail
-
ALIGN_AUTO
public static final int ALIGN_AUTO
- See Also:
- Constant Field Values
-
ALIGN_LEFT
public static final int ALIGN_LEFT
- See Also:
- Constant Field Values
-
ALIGN_RIGHT
public static final int ALIGN_RIGHT
- See Also:
- Constant Field Values
-
ALIGN_CENTER
public static final int ALIGN_CENTER
- See Also:
- Constant Field Values
-
ALIGN_BOTTOM
public static final int ALIGN_BOTTOM
- See Also:
- Constant Field Values
-
ALIGN_TOP
public static final int ALIGN_TOP
- See Also:
- Constant Field Values
-
label
protected java.lang.String label
-
hidden
protected boolean hidden
-
horizontalAlignment
protected int horizontalAlignment
-
verticalAlignment
protected int verticalAlignment
-
numberFormat
protected java.lang.String numberFormat
-
dateFormat
protected java.lang.String dateFormat
-
treatAsBoolean
protected boolean treatAsBoolean
-
prefix
protected java.lang.String prefix
-
suffix
protected java.lang.String suffix
-
editable
protected boolean editable
-
sortable
protected boolean sortable
-
-
Method Detail
-
getDateFormat
public java.lang.String getDateFormat()
-
setDateFormat
public void setDateFormat(java.lang.String dateFormat)
-
isHidden
public boolean isHidden()
-
setHidden
public void setHidden(boolean hidden)
-
getHorizontalAlignment
public int getHorizontalAlignment()
-
setHorizontalAlignment
public void setHorizontalAlignment(int horizontalAlignment)
-
getLabel
public java.lang.String getLabel()
-
setLabel
public void setLabel(java.lang.String label)
-
getNumberFormat
public java.lang.String getNumberFormat()
-
setNumberFormat
public void setNumberFormat(java.lang.String numberFormat)
-
isTreatAsBoolean
public boolean isTreatAsBoolean()
-
setTreatAsBoolean
public void setTreatAsBoolean(boolean treatAsBoolean)
-
getVerticalAlignment
public int getVerticalAlignment()
-
setVerticalAlignment
public void setVerticalAlignment(int verticalAlignment)
-
getPrefix
public java.lang.String getPrefix()
-
setPrefix
public void setPrefix(java.lang.String prefix)
-
getSuffix
public java.lang.String getSuffix()
-
setSuffix
public void setSuffix(java.lang.String suffix)
-
isEditable
public boolean isEditable()
-
setEditable
public void setEditable(boolean editable)
-
isSortable
public boolean isSortable()
-
setSortable
public void setSortable(boolean sortable)
-
-