|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfacets.util.Tracer
facets.util.StatefulCore
facets.core.superficial.app.SelectionView
facets.core.app.TableView
public abstract class TableView
SelectionView that generates tabular viewer data.
| Field Summary |
|---|
| Fields inherited from interface facets.core.superficial.app.SView |
|---|
NO_VIEW |
| Constructor Summary | |
|---|---|
TableView(java.lang.String title)
|
|
| Method Summary | |
|---|---|
boolean |
allowMultipleSelection()
Implements interface method. |
boolean |
allowSelectOnEdit()
|
java.text.Format |
getColumnFormat(int col)
|
java.lang.String |
getColumnTitle(int col)
|
protected Stateful[] |
getRowSources(PathSelection table)
Return data sources for use by newViewerSelection(SViewer, SSelection). |
boolean |
isColumnEditable(int col)
|
protected abstract ValueProxy |
newRowProxy(Stateful stateful)
Create a ValueProxy that
defines with ValueProxy.valueCount() the row length
supplies with ValueProxy.get(int) the values for each column
|
protected PathSelection |
newTableSelection(PathSelection viewable)
Return a local selection for use by newViewerSelection(SViewer, SSelection). |
SSelection |
newViewerSelection(SViewer viewer,
SSelection viewable)
Re-implementation that obtains a local PathSelection by passing viewable to newTableSelection(PathSelection)
obtains an array of data sources from getRowSources(PathSelection)
creates ValueProxy rows by
calling newRowProxy(Stateful) for each source
returns a PathSelection of ArrayPaths created from the rows
and the local selection
|
| Methods inherited from class facets.core.superficial.app.SelectionView |
|---|
isLive |
| Methods inherited from class facets.util.StatefulCore |
|---|
copyState, setState, setTitle, stateEquals, stateStamp, title, toString, updateStateStamp |
| Methods inherited from class facets.util.Tracer |
|---|
trace, trace, trace, trace, trace, traceDebug, traceDebug, traceObjectText, traceOutput, traceOutputWithClass |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface facets.util.Titled |
|---|
title |
| Constructor Detail |
|---|
public TableView(java.lang.String title)
| Method Detail |
|---|
public final SSelection newViewerSelection(SViewer viewer,
SSelection viewable)
PathSelection by passing viewable to newTableSelection(PathSelection)
getRowSources(PathSelection)
ValueProxy rows by
calling newRowProxy(Stateful) for each source
PathSelection of ArrayPaths created from the rows
and the local selection
newViewerSelection in class SelectionViewviewer - controlled by this viewviewable - the current SelectingFrame.selection()protected PathSelection newTableSelection(PathSelection viewable)
newViewerSelection(SViewer, SSelection).
Default implementation returns the PathSelection passed.
viewable - the SSelection passed to the calling method,
cast to a PathSelectionprotected Stateful[] getRowSources(PathSelection table)
newViewerSelection(SViewer, SSelection).
Default implementation casts the selection content to an array.
table - the SSelection passed to the calling methodprotected abstract ValueProxy newRowProxy(Stateful stateful)
ValueProxy that
ValueProxy.valueCount() the row length
ValueProxy.get(int) the values for each column
stateful - will be the ValueProxy.sourcepublic boolean allowMultipleSelection()
SelectionViewDefault returns false.
allowMultipleSelection in interface SViewallowMultipleSelection in class SelectionViewpublic boolean isColumnEditable(int col)
public java.lang.String getColumnTitle(int col)
public java.text.Format getColumnFormat(int col)
public boolean allowSelectOnEdit()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||