|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfacets.util.Tracer
facets.core.superficial.SIndexing.Coupler
public static class SIndexing.Coupler
Connects an SIndexing to the application.
A SIndexing.Coupler supplies client-specific mechanism and
policy for an SIndexing.
| Constructor Summary | |
|---|---|
SIndexing.Coupler()
|
|
| Method Summary | |
|---|---|
boolean |
canCycle(SIndexing i)
Can the indexing loop round when iterating through its indexables? |
java.lang.Object[] |
getIndexables()
Can return dynamic indexables. |
void |
indexSet(SIndexing i)
Called whenever an index changes. |
java.lang.String[] |
iterationTitles(SIndexing i)
Returns titles for iterating buttons or menu items. |
boolean[] |
liveStates(SIndexing i)
Returns an array defining the 'enabled' state of each item. |
java.lang.String[] |
newIndexableTitles(SIndexing i)
Returns strings to represent the indexables. |
| 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, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SIndexing.Coupler()
| Method Detail |
|---|
public java.lang.String[] newIndexableTitles(SIndexing i)
These will appear in facet lists, or as labels for menu items or radio buttons.
The default returns titles based on the type of the SIndexing's
indexables:
Strings, returns themTitleds, returns their title propertiestoString propertiesSIndexing.NO_INDEXABLES constant, returns an
empty String[].
public void indexSet(SIndexing i)
public java.lang.Object[] getIndexables()
Called by SIndexing.indexables() if none set during construction.
public java.lang.String[] iterationTitles(SIndexing i)
Default implementation returns "Previous","Next".
public boolean canCycle(SIndexing i)
Default returns false.
public boolean[] liveStates(SIndexing i)
May be needed for menu items or radio buttons.
Default implementation returns states to match i.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||