|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JTable | +--org.arch4j.ui.table.ObjectTable | +--org.arch4j.ui.table.ObjectSelectionTable
This is a selectable table. Each row is selectable using a check box.
Field Summary |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
ObjectSelectionTable()
Default constructor. |
|
ObjectSelectionTable(Collection anObjectList,
Collection aPropertiesList,
Collection aColumnHeadingList,
Collection aRowHeadingList)
Creates a new instance of ObjectTable |
Method Summary | |
void |
addSelectedObject(Object anObject)
Add a object to the selected object list. |
void |
clearSelections()
Clear out all selections. |
Collection |
getSelectedObjects()
Get the selected objects. |
void |
selectAllObjects()
Sets all items as selected |
Methods inherited from class org.arch4j.ui.table.ObjectTable |
addObject, addObjects, getIndex, getObjects, getRowObject, getSelectionMode, refreshTableData, refreshTableData, removeAllObjects, removeObject, setObjects, setSelectedObject, setSelectionMode |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ObjectSelectionTable()
public ObjectSelectionTable(Collection anObjectList, Collection aPropertiesList, Collection aColumnHeadingList, Collection aRowHeadingList)
anObjectList
- The objects that represent each row.aPropertiesList
- The properties that are used to set/get data for each column.aColumnHeadingList
- The strings to use for the column headers.aRowHeadingList
- The row headings list. NOTE: Not currently used...Method Detail |
public Collection getSelectedObjects()
public void addSelectedObject(Object anObject)
anObject
- The object to add.public void clearSelections()
public void selectAllObjects()
|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |