Class TableColumnAttributes
java.lang.Object
com.inductiveautomation.factorypmi.application.components.table.TableColumnAttributes
- All Implemented Interfaces:
Serializable,SwingConstants
- Direct Known Subclasses:
AdvancedTableColumnAttributes,ColumnAttributes
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intprotected Stringprotected booleanprotected booleanprotected intprotected Stringprotected Stringprotected Stringprotected booleanprotected Stringprotected booleanprotected intFields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetLabel()intbooleanbooleanisHidden()booleanbooleanvoidsetDateFormat(String dateFormat) voidsetEditable(boolean editable) voidsetHidden(boolean hidden) voidsetHorizontalAlignment(int horizontalAlignment) voidvoidsetNumberFormat(String numberFormat) voidvoidsetSortable(boolean sortable) voidvoidsetTreatAsBoolean(boolean treatAsBoolean) voidsetVerticalAlignment(int verticalAlignment)
-
Field Details
-
ALIGN_AUTO
public static final int ALIGN_AUTO- See Also:
-
ALIGN_LEFT
public static final int ALIGN_LEFT- See Also:
-
ALIGN_RIGHT
public static final int ALIGN_RIGHT- See Also:
-
ALIGN_CENTER
public static final int ALIGN_CENTER- See Also:
-
ALIGN_BOTTOM
public static final int ALIGN_BOTTOM- See Also:
-
ALIGN_TOP
public static final int ALIGN_TOP- See Also:
-
label
-
horizontalAlignment
protected int horizontalAlignment -
verticalAlignment
protected int verticalAlignment -
numberFormat
-
dateFormat
-
treatAsBoolean
protected boolean treatAsBoolean -
prefix
-
suffix
-
editable
protected boolean editable -
sortable
protected boolean sortable
-
-
Constructor Details
-
TableColumnAttributes
public TableColumnAttributes()
-
-
Method Details
-
getDateFormat
-
setDateFormat
-
isHidden
public boolean isHidden() -
setHidden
public void setHidden(boolean hidden) -
getHorizontalAlignment
public int getHorizontalAlignment() -
setHorizontalAlignment
public void setHorizontalAlignment(int horizontalAlignment) -
getLabel
-
setLabel
-
getNumberFormat
-
setNumberFormat
-
isTreatAsBoolean
public boolean isTreatAsBoolean() -
setTreatAsBoolean
public void setTreatAsBoolean(boolean treatAsBoolean) -
getVerticalAlignment
public int getVerticalAlignment() -
setVerticalAlignment
public void setVerticalAlignment(int verticalAlignment) -
getPrefix
-
setPrefix
-
getSuffix
-
setSuffix
-
isEditable
public boolean isEditable() -
setEditable
public void setEditable(boolean editable) -
isSortable
public boolean isSortable() -
setSortable
public void setSortable(boolean sortable)
-