|
||||||||||
| 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 TableWidgetpublic int nrOfRows()
nrOfRows in interface TableWidgetpublic void addUserSelectionListener(PropertyChangeListener listener)
public final void setRows(Collection newRows)
TableWidget
setRows in interface TableWidgetnewRows - The list of row objectspublic final List getRows()
TableWidget
getRows in interface TableWidgetTableWidget.getVisibleRows()public final List getVisibleRows()
TableWidget
getVisibleRows in interface TableWidgetTableWidget.getRows()public void addRowObject(Object newObject)
TableWidget
addRowObject in interface TableWidgetnewObject - The object to addpublic void addRows(Collection rows)
TableWidget
addRows in interface TableWidgetrows - The collection of objects to addpublic void removeRowObject(Object objectToRemove)
TableWidget
removeRowObject in interface TableWidgetobjectToRemove - The object to remove
public int selectRowObject(Object toPointTo,
Observer originatingObserver)
TableWidget
selectRowObject in interface TableWidgettoPointTo - 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 TableWidgetindex - index of the row that needs to be selectedoriginatingObserver - Optional observer that doesn't want to be notified of the
selection
public void addSelection(Object[] rows,
Observer originatingObserver)
TableWidget
addSelection in interface TableWidgetrows - Array with row objectsoriginatingObserver - Optional observer that doesn't want to be notified of the
selectionpublic boolean hasSelection()
hasSelection in interface TableWidgetpublic void scrollToSelectedRow()
public void replaceRowObject(Object oldObject,
Object newObject,
Observer originatingObserver)
TableWidget
replaceRowObject in interface TableWidgetoldObject - The object to be replacednewObject - The replacing objectoriginatingObserver - Optional observer that doesn't want to be notified of the
replacement
public void replaceRows(Collection oldObject,
Collection newObject)
TableWidget
replaceRows in interface TableWidgetoldObject - The collection of objects to be replacednewObject - The replacing collection of objectspublic void unSelectAll()
TableWidget
unSelectAll in interface TableWidgetpublic Object[] getSelectedRows()
getSelectedRows in interface TableWidgetpublic JComponent getComponent()
getComponent in interface Widgetnull graphical component built using the
parameters held in the widget instance.public JTable getTable()
TableWidget
getTable in interface TableWidgetWidget.getComponent()public void addSelectionObserver(Observer observer)
TableWidget
addSelectionObserver in interface TableWidgetTableWidget.selectRowObject(Object, Observer)public void removeSelectionObserver(Observer observer)
TableWidget
removeSelectionObserver in interface TableWidgetpublic void addTableModelListener(TableModelListener listener)
TableWidget
addTableModelListener in interface TableWidgetpublic void removeTableModelListener(TableModelListener listener)
TableWidget
removeTableModelListener in interface TableWidgetpublic void updateTable()
TableWidget
updateTable in interface TableWidgetpublic JTextField getTextFilterField()
getTextFilterField in interface TableWidgetpublic AbstractCommand[] getNavigationCommands()
TableWidget
getNavigationCommands in interface TableWidgetTableWidget.NAVIGATE_FIRST,
TableWidget.NAVIGATE_PREVIOUS,
TableWidget.NAVIGATE_NEXT,
TableWidget.NAVIGATE_LASTpublic JComponent getNavigationButtonBar()
TableWidgetnavigation-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 TableWidgetpublic JComponent getButtonBar()
TableWidget
getButtonBar in interface TableWidgetpublic JLabel getListSummaryLabel()
getListSummaryLabel in interface TableWidgetpublic void onAboutToShow()
AbstractWidget
onAboutToShow in interface WidgetonAboutToShow in class AbstractWidgetpublic Set getDirtyRows()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||