|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.richclient.application.support.ApplicationServicesAccessor
org.springframework.richclient.widget.AbstractWidget
org.springframework.richclient.widget.table.glazedlists.GlazedListTableWidget
public final class GlazedListTableWidget
Field Summary | |
---|---|
static org.jdesktop.swingx.decorator.HighlightPredicate |
HIGHLIGHTSELECTCOLUMN
|
Fields inherited from class org.springframework.richclient.widget.AbstractWidget |
---|
showing |
Fields inherited from class org.springframework.richclient.application.support.ApplicationServicesAccessor |
---|
logger |
Fields inherited from interface org.springframework.richclient.widget.table.TableWidget |
---|
NAVIGATE_FIRST, NAVIGATE_FIRSTROW_CMDID, NAVIGATE_LAST, NAVIGATE_LASTROW_CMDID, NAVIGATE_NEXT, NAVIGATE_NEXTROW_CMDID, NAVIGATE_PREVIOUS, NAVIGATE_PREVIOUSROW_CMDID, SELECT_ALL_ID, SELECT_INVERSE_ID, SELECT_NONE_ID |
Fields inherited from interface org.springframework.richclient.widget.Widget |
---|
EMPTY_WIDGET |
Constructor Summary | |
---|---|
GlazedListTableWidget(Class dataType,
List<? extends Object> rows,
ca.odell.glazedlists.gui.TableFormat format,
String[] filterProperties)
|
|
GlazedListTableWidget(Class dataType,
List<? extends Object> rows,
ca.odell.glazedlists.gui.TableFormat format,
String[] filterProperties,
Comparator comparator,
boolean addHighlightSelectColumn)
|
|
GlazedListTableWidget(List<? extends Object> rows,
TableDescription tableDesc)
|
|
GlazedListTableWidget(List<? extends Object> rows,
TableDescription tableDesc,
Comparator comparator)
|
Method Summary | |
---|---|
void |
addRowObject(Object newObject)
Local addition of a single object to the data-list of the table |
void |
addRows(Collection rows)
Local addition of a collection of objects to the data-list of the table |
void |
addSelection(Object[] rows,
Observer originatingObserver)
Adds an array of objects to the current selection |
void |
addSelectionObserver(Observer observer)
Registers a listener that will receive events on selection of an object in the table. |
void |
addTableModelListener(TableModelListener listener)
Registers a listener for changes made to TableModel |
void |
addUserSelectionListener(PropertyChangeListener listener)
|
JComponent |
getButtonBar()
Combination of the navigation button bar and the selection button bar |
JComponent |
getComponent()
|
Set |
getDirtyRows()
|
JLabel |
getListSummaryLabel()
|
JComponent |
getNavigationButtonBar()
The navigation-commands as button bar |
JComponent |
getNavigationButtonBar(com.jgoodies.forms.layout.Size size,
Border border)
|
CommandGroup |
getNavigationCommandGroup()
|
AbstractCommand[] |
getNavigationCommands()
Spring-RCP commands to navigate through the table |
List |
getRows()
Returns the current list of objects behind the table. |
JComponent |
getSelectButtonBar()
Buttonbar with three buttons: select all, select none and select inverse |
CommandGroup |
getSelectColumnCommandGroup()
|
Object[] |
getSelectedRows()
|
JTable |
getTable()
Returns the table, getComponent() does not need to return only table (a scrollpane can be returned too containing the table), as this method will enable you to get to the table. |
JTextField |
getTextFilterField()
|
List |
getVisibleRows()
Returns the current list of objects visible in the table. |
boolean |
hasSelection()
|
boolean |
isEmpty()
|
int |
nrOfRows()
Numbers of rows in the table |
void |
onAboutToShow()
Hook method called before showing the component on screen. |
void |
removeRowObject(Object objectToRemove)
Local removal of a single object to the data-list of the table |
void |
removeSelectionObserver(Observer observer)
Removes a selection listener |
void |
removeTableModelListener(TableModelListener listener)
Remove the given listener from the TableModel. |
void |
replaceRowObject(Object oldObject,
Object newObject,
Observer originatingObserver)
Replaces an object in the table |
void |
replaceRows(Collection oldObject,
Collection newObject)
Replaces a collection of objects in the table. |
void |
scrollToSelectedRow()
|
void |
selectRowObject(int index,
Observer originatingObserver)
Selects a row on the given index |
int |
selectRowObject(Object toPointTo,
Observer originatingObserver)
Selects the row of a given object and notifies the registered selection observers. |
void |
setHighlighters(org.jdesktop.swingx.decorator.Highlighter... highlighters)
|
void |
setRowHeightEnabled(boolean rowHeightEnabled)
Enable the row height to diverge from the default height. |
void |
setRows(Collection newRows)
Sets the rows to be shown in the table |
void |
unSelectAll()
Deselects all rows |
void |
updateTable()
Forces a re-read of the data-list for the table |
Methods inherited from class org.springframework.richclient.widget.AbstractWidget |
---|
canClose, getCommands, isShowing, onAboutToHide |
Methods inherited from class org.springframework.richclient.application.support.ApplicationServicesAccessor |
---|
getActiveWindow, getApplication, getApplicationContext, getApplicationName, getApplicationServices, getCommandConfigurer, getComponentFactory, getConversionService, getIconSource, getImageSource, getMessage, getMessage, getMessage, getMessage, getMessages, getMessageSource, getObjectConfigurer, getService |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.springframework.richclient.widget.Widget |
---|
canClose, getCommands, isShowing, onAboutToHide |
Field Detail |
---|
public static final org.jdesktop.swingx.decorator.HighlightPredicate HIGHLIGHTSELECTCOLUMN
Constructor Detail |
---|
public GlazedListTableWidget(List<? extends Object> rows, TableDescription tableDesc)
public GlazedListTableWidget(List<? extends Object> rows, TableDescription tableDesc, Comparator comparator)
public GlazedListTableWidget(Class dataType, List<? extends Object> rows, ca.odell.glazedlists.gui.TableFormat format, String[] filterProperties)
public GlazedListTableWidget(Class dataType, List<? extends Object> rows, ca.odell.glazedlists.gui.TableFormat format, String[] filterProperties, Comparator comparator, boolean addHighlightSelectColumn)
Method Detail |
---|
public void setRowHeightEnabled(boolean rowHeightEnabled)
public void setHighlighters(org.jdesktop.swingx.decorator.Highlighter... highlighters)
public boolean isEmpty()
isEmpty
in interface TableWidget
public int nrOfRows()
nrOfRows
in interface TableWidget
public void addUserSelectionListener(PropertyChangeListener listener)
public final void setRows(Collection newRows)
TableWidget
setRows
in interface TableWidget
newRows
- The list of row objectspublic final List getRows()
TableWidget
getRows
in interface TableWidget
TableWidget.getVisibleRows()
public final List getVisibleRows()
TableWidget
getVisibleRows
in interface TableWidget
TableWidget.getRows()
public void addRowObject(Object newObject)
TableWidget
addRowObject
in interface TableWidget
newObject
- The object to addpublic void addRows(Collection rows)
TableWidget
addRows
in interface TableWidget
rows
- The collection of objects to addpublic void removeRowObject(Object objectToRemove)
TableWidget
removeRowObject
in interface TableWidget
objectToRemove
- The object to removepublic int selectRowObject(Object toPointTo, Observer originatingObserver)
TableWidget
selectRowObject
in interface TableWidget
toPointTo
- row-object that needs to be selectedoriginatingObserver
- Optional observer that doesn't want to be notified of the
selection
TableWidget.addSelectionObserver(java.util.Observer)
public void selectRowObject(int index, Observer originatingObserver)
TableWidget
selectRowObject
in interface TableWidget
index
- index of the row that needs to be selectedoriginatingObserver
- Optional observer that doesn't want to be notified of the
selectionpublic void addSelection(Object[] rows, Observer originatingObserver)
TableWidget
addSelection
in interface TableWidget
rows
- Array with row objectsoriginatingObserver
- Optional observer that doesn't want to be notified of the
selectionpublic boolean hasSelection()
hasSelection
in interface TableWidget
public void scrollToSelectedRow()
public void replaceRowObject(Object oldObject, Object newObject, Observer originatingObserver)
TableWidget
replaceRowObject
in interface TableWidget
oldObject
- The object to be replacednewObject
- The replacing objectoriginatingObserver
- Optional observer that doesn't want to be notified of the
replacementpublic void replaceRows(Collection oldObject, Collection newObject)
TableWidget
replaceRows
in interface TableWidget
oldObject
- The collection of objects to be replacednewObject
- The replacing collection of objectspublic void unSelectAll()
TableWidget
unSelectAll
in interface TableWidget
public Object[] getSelectedRows()
getSelectedRows
in interface TableWidget
public JComponent getComponent()
getComponent
in interface Widget
null
graphical component built using the
parameters held in the widget instance.public JTable getTable()
TableWidget
getTable
in interface TableWidget
Widget.getComponent()
public void addSelectionObserver(Observer observer)
TableWidget
addSelectionObserver
in interface TableWidget
TableWidget.selectRowObject(Object, Observer)
public void removeSelectionObserver(Observer observer)
TableWidget
removeSelectionObserver
in interface TableWidget
public void addTableModelListener(TableModelListener listener)
TableWidget
addTableModelListener
in interface TableWidget
public void removeTableModelListener(TableModelListener listener)
TableWidget
removeTableModelListener
in interface TableWidget
public void updateTable()
TableWidget
updateTable
in interface TableWidget
public JTextField getTextFilterField()
getTextFilterField
in interface TableWidget
public AbstractCommand[] getNavigationCommands()
TableWidget
getNavigationCommands
in interface TableWidget
TableWidget.NAVIGATE_FIRST
,
TableWidget.NAVIGATE_PREVIOUS
,
TableWidget.NAVIGATE_NEXT
,
TableWidget.NAVIGATE_LAST
public JComponent getNavigationButtonBar()
TableWidget
navigation-commands
as button bar
getNavigationButtonBar
in interface TableWidget
public JComponent getNavigationButtonBar(com.jgoodies.forms.layout.Size size, Border border)
public CommandGroup getNavigationCommandGroup()
public CommandGroup getSelectColumnCommandGroup()
public JComponent getSelectButtonBar()
TableWidget
getSelectButtonBar
in interface TableWidget
public JComponent getButtonBar()
TableWidget
getButtonBar
in interface TableWidget
public JLabel getListSummaryLabel()
getListSummaryLabel
in interface TableWidget
public void onAboutToShow()
AbstractWidget
onAboutToShow
in interface Widget
onAboutToShow
in class AbstractWidget
public Set getDirtyRows()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |