Class JTableHpr<T extends JTable>
java.lang.Object
com.inductiveautomation.snap.ui.UIHelper<T>
com.inductiveautomation.snap.swing.SwingHelper<T>
com.inductiveautomation.snap.swing.helpers.JComponentHpr<T>
com.inductiveautomation.snap.swing.helpers.JTableHpr<T>
A Helper subclass for JTable.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionAdds a column for header, bind key, width.voidaddColumns(JTable aTable, List<String> theKeys) Adds columns for a list of keys.intgetChildCount(T anObj) Override to suppress children.Returns the items for an object.getPropertyNameMapped(T anObj, String aName) Returns a mapped property name.getPropertyNamesImpl(T anObj) Returns the property names for given object.intgetSelectedIndex(T aTable) Returns the selected index property of given object.getSelectedItem(T aTable) Returns the selected object property of given object.voidInitializes newly created object.booleanisValueAdjusting(T aTable) Returns whether table value is adjusting.voidremoveColumns(JTable aTable) Removes columns.static voidscrollCellToVisible(JTable aTable, int aRow, int aColumn) Scrolls a table so that given row and column are visible.static voidsetColumnWidths(JTable aTable) Sets table column widths to preferred size.voidSets the items for an object.voidsetSelectedIndex(T aTable, int anIndex) Sets the selected index property of given object to given value.voidsetSelectedItem(T aTable, Object aValue) Sets the selected object property of given object to given value.voidSets the selected row index.Methods inherited from class com.inductiveautomation.snap.swing.helpers.JComponentHpraddBinding, createEventAdapter, getAutosizing, getBinding, getBindingCount, getBindings, getChangeListener, getChild, getConstraints, getEventAdapter, getName, getOwner, getParent, getSendActionOnFocusLost, getSendActionOnFocusLostDefault, isEnabled, removeBinding, setConstraints, setEnabled, setOwner, setSendActionOnFocusLostMethods inherited from class com.inductiveautomation.snap.swing.SwingHelpergetHelper, getSwingHelper, getSwingHelperMethods inherited from class com.inductiveautomation.snap.ui.UIHelperenableEvents, getAction, getBinding, getChild, getItemDisplayKey, getKeyValue, getPropertyNames, getSelectedIndexes, getSelectedIndexs, getText, getValue, initUIDeep, isEnabled, isPropertyName, removeBinding, setAction, setEnabled, setItemDisplayKey, setItems, setKeyValue, setSelectedIndexes, setText
- 
Constructor Details- 
JTableHprpublic JTableHpr()
 
- 
- 
Method Details- 
getChildCountOverride to suppress children.- Overrides:
- getChildCountin class- JComponentHpr<T extends JTable>
 
- 
initUIInitializes newly created object.- Overrides:
- initUIin class- JComponentHpr<T extends JTable>
 
- 
addColumnpublic TableColumn addColumn(JTable aTable, String aHeader, String aBindKey, int anIndex, int aWidth) Adds a column for header, bind key, width.
- 
addColumnsAdds columns for a list of keys.
- 
removeColumnsRemoves columns.
- 
scrollCellToVisibleScrolls a table so that given row and column are visible.
- 
setColumnWidthsSets table column widths to preferred size.
- 
getPropertyNamesImplReturns the property names for given object.- Overrides:
- getPropertyNamesImplin class- JComponentHpr<T extends JTable>
 
- 
getPropertyNameMappedReturns a mapped property name.- Overrides:
- getPropertyNameMappedin class- UIHelper<T extends JTable>
 
- 
setValueSets the selected row index.
- 
getItemsReturns the items for an object.
- 
setItemsSets the items for an object.
- 
getSelectedIndexReturns the selected index property of given object.- Overrides:
- getSelectedIndexin class- UIHelper<T extends JTable>
 
- 
setSelectedIndexSets the selected index property of given object to given value.- Overrides:
- setSelectedIndexin class- UIHelper<T extends JTable>
 
- 
getSelectedItemReturns the selected object property of given object.- Overrides:
- getSelectedItemin class- UIHelper<T extends JTable>
 
- 
setSelectedItemSets the selected object property of given object to given value.- Overrides:
- setSelectedItemin class- UIHelper<T extends JTable>
 
- 
isValueAdjustingReturns whether table value is adjusting.- Overrides:
- isValueAdjustingin class- UIHelper<T extends JTable>
 
 
-