|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfacets.util.Tracer
facets.facet.FacetFactory
public abstract class FacetFactory
Factory that creates and lays out facets.
FacetFactory
provides a facet builder API for creating facets,
attaching them to a targeter tree and assembling them into a
complete application layout.
Most of its methods comply with the following general contract:
The core FacetFactory
for a surface must be created using one of the
class methods newDesktopCore(FacetAppSpecifier)
and newAppletCore(FacetAppSpecifier, SurfaceStyle, Shade)
;
it may then be passed to the constructor of concrete subclasses which
will thus use the same toolkit and other resources, typically within
methods re-implementing AppHost.LayoutFeatures
.
Hints can be any concatenation of the HINT_XXX
class constants;
for examples of their use see XXXFacets
classes in the demo
package tree included with the Facets distribution.
Nested Class Summary | |
---|---|
static interface |
FacetFactory.AppletHost
SHost that can create and set an applet layout. |
class |
FacetFactory.AppMenuBuilder
Creates MenuFacets for an application main menu. |
class |
FacetFactory.AppTargeters
|
static class |
FacetFactory.ComboCoupler
Coupler for any combination of indexed list and text box. |
class |
FacetFactory.EditFacets
Creates facets for an application edit menu. |
static class |
FacetFactory.SurfaceStyle
Possible app surface styles. |
static class |
FacetFactory.ToolkitType
Possible widget toolkits and look-and-feels. |
Field Summary | |
---|---|
static facets.facet.toolkit.KitFacet |
BREAK
Alternative name for null facet that can be used as divider for facet layouts. |
static int |
dragNotifyPause
Time delay for drag input notifications, in milliseconds. |
static boolean |
dragNotifyWait
Should drag notification only take place when drag is paused? |
static int |
facets
|
static java.lang.String |
findGraphValue
|
static SIndexing |
fontIndexing
|
static int |
fontSizeAt
|
static java.lang.Integer[] |
fontSizes
|
static int |
GRAPH_APP
|
static int |
GRAPH_DIALOGS
|
static java.lang.String |
GRAPH_FIND_NONE
|
protected static OffsetPath |
GRAPH_NO_PATH
|
static int |
GRAPH_NONE
|
static boolean |
graphBuild
|
static int |
graphFindAt
|
static boolean |
graphFindNow
|
static int |
graphShowWhere
|
static java.lang.String |
HINT_BARE
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_DEBUG
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_EXTRAS_PANE
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_GRID
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_INDEXING_SELECT
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_LABEL_AUTOCLEAR
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_MENU_NO_MNEMONICS
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_MENU_PRELOAD
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_NO_FLASH
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_NO_FOCUS
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_NONE
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_NUMERIC_FIELDS
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_NUMERIC_NUDGERS_FIRST
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_NUMERIC_UNGROUPED
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_PAINT_CACHE_DEEP
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_PANEL_ABOVE
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_PANEL_BELOW
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_PANEL_BORDER
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_PANEL_CENTER
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_PANEL_INSET
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_PANEL_MIDDLE
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_PANEL_RIGHT
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_SLIDER_FIELDS_TICKS_LABELS
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_SLIDER_LABELS
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_SLIDER_LOCAL
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_SLIDER_TICKS
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_SPREAD
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_SQUARE
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_TALL
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_TEXT_FONT
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_TITLE2
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_TITLE3
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_TOOLTIPS
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_USAGE_FORM
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
HINT_USAGE_PANEL
Flag constant to be passed to facet factory methods; may be concatenated with others. |
protected facets.facet.toolkit.Kit |
kit
|
static int |
MENU_APP
|
static int |
MENU_EDIT
|
static int |
MENU_HELP
|
static int |
MENU_PANE
|
static int |
MENU_WINDOW
|
static facets.facet.toolkit.KitFacet |
NO_FACET
Alternative name for null facet that can be used as divider for facet layouts. |
static boolean |
notifyInterim
Should drag notification only take place when drag is paused? |
static Shade |
panelShade
Shade to be used for surface panels and menus. |
static FacetFactory.SurfaceStyle |
surfaceStyle
App surface contentStyle. |
static java.lang.String |
TITLE_CORE_MENU
Title for standard application menu. |
static java.lang.String |
TITLE_EDIT_MENU
Title for standard application menu. |
static java.lang.String |
TITLE_FILE_MENU
Title for standard application menu. |
static java.lang.String |
TITLE_HELP_MENU
Title for standard application menu. |
static java.lang.String |
TITLE_WINDOW_MENU
Title for standard application menu. |
static java.lang.String |
TREE_COLLAPSE
Flag constant to be passed to facet factory methods; may be concatenated with others. |
static java.lang.String |
TREE_EXPAND
Flag constant to be passed to facet factory methods; may be concatenated with others. |
Constructor Summary | |
---|---|
FacetFactory(FacetFactory src)
Constructor for use by subclasses to be passed as AppHost.LayoutFeatures . |
Method Summary | |
---|---|
protected MenuFacets[] |
adjustMenuRoots(MenuFacets[] menus)
Enables modification of standard menus. |
FacetFactory.AppletHost |
appletHostWrap(javax.swing.JMenuBar menuBar)
Creates a Swing host for an applet-based application surface. |
AreaFacets |
areas()
Returns a sub-factory for viewer, area and surface facets. |
SFacet |
colorChooser(STargeter rgb)
Creates a facet enabling the user to define an RGB shade. |
AppWatcher |
coupleAppWatcher(AppWatcher.WatcherCoupler coupler)
|
SFacet[] |
editTools(SContentRootTargeter t)
Creates facets for an application edit toolbar. |
SFacet |
extras()
Implements interface method. |
SFacet |
extras(AreaTargeter targeter)
|
SFacet |
fill()
Creates a facet defining an empty panel to fill spare space in a row panel. |
static void |
fillFontSizes(int kitMidSize)
|
protected STargeter |
findPaneTargeter(SContentRootTargeter root)
Retrieve a STargeter targeting the return of
AreaFacets.panesGetTargets(SAreaTarget) . |
static double |
fontFactor()
|
MenuFacets |
helpMenuFacets(SContentRootTargeter rootTargeter)
Creates facets for an application help menu. |
SFacet |
hideMount(STargeter targeter,
SFacet contents,
java.lang.String hints)
Creates a facet that can hide its contents. |
void |
hideMountSetHidden(SFacet mount,
boolean hidden)
|
SFacet |
indexingDropdownList(STargeter t,
java.lang.String hints)
Creates a facet defining a dropdown list. |
SFacet |
indexingIteratorButtons(STargeter t,
java.lang.String hints)
Creates a facet defining either a single or a pair of iterating pushbuttons. |
SFacet |
indexingIteratorItems(STargeter t)
Creates a facet defining either a single or a pair of iterating action menu items. |
SFacet |
indexingIteratorMenu(STargeter t,
java.lang.String hints)
Creates a facet defining a sub-menu containing either a single or a pair of iterating action menu items. |
SFacet |
indexingPaneChecked(STargeter t,
int width,
int rows,
java.lang.String hints)
Creates a facet defining a list pane of items selected by checkboxes. |
SFacet |
indexingPaneMultiple(STargeter t,
int width,
int rows,
java.lang.String hints)
Creates a facet defining a multiple-selection list pane. |
SFacet |
indexingPaneSingle(STargeter t,
int width,
int rows,
java.lang.String hints)
Creates a facet defining a single-selection list pane. |
SFacet |
indexingRadioButtonMenu(STargeter t,
java.lang.String hints)
Creates a facet defining a radio-button sub-menu. |
SFacet |
indexingRadioButtonMenuItems(STargeter t,
java.lang.String hints)
Creates a facet defining a radio-button items group. |
SFacet |
indexingRadioButtons(STargeter t,
java.lang.String hints)
Creates a facet defining a radio-button panel. |
SFacet |
indexingRadioButtonSingle(STargeter t,
int index,
java.lang.String hints)
Creates a facet defining a single radio-button from a panel. |
static SFacet[] |
join(SFacet[] front,
SFacet[] back)
Joins two facet arrays. |
SFacet |
menuRoot(MenuFacets content)
Creates a facet defining a menu for attachment to a menu bar. |
SFacet |
menuRoot(STargeter t,
java.lang.String title,
SFacet... facets)
Creates a facet defining a menu for attachment to a menu bar. |
SFacet[] |
menus()
Implements interface method. |
protected SFacet[] |
newAdjustedMenus(FacetAppSurface app,
SContentRootTargeter root)
Creates standard menus to match an AppSpecifier . |
static FacetFactory |
newAppletCore(FacetAppSpecifier spec,
FacetFactory.SurfaceStyle style,
Shade panelShade)
Creates a basic FacetFactory for use in an applet. |
static java.lang.String |
newCountsText()
|
static FacetFactory |
newDesktopCore(FacetAppSpecifier spec)
Creates a basic FacetFactory for use in a desktop application. |
AppHost |
newDesktopHost(FacetAppSurface app)
Supplies the AppHost for a desktop app. |
protected SFacet |
newExtrasMount(AreaTargeter targeter,
ValueNode stateApp,
SFacet graph,
SFacet help)
|
SFacet |
numericFields(STargeter t,
java.lang.String hints)
Creates a facet defining one or more numeric text fields exposing the target of t or those of its elements. |
SFacet |
numericNudgeButtons(STargeter t,
java.lang.String hints)
Creates a facet defining one or more pairs of nudge buttons exposing the target of t or those of its elements. |
SFacet |
numericNudgeMenu(STargeter t,
java.lang.String hints)
Creates a facet attached to t defining
a pair of action items. |
SFacet[] |
numericNudgeMenuItems(STargeter t,
java.lang.String hints)
Creates nudge menu items exposing a numeric. |
SFacet[] |
numericNudgeMenus(STargeter t,
java.lang.String hints)
Creates nudge menus exposing a numeric. |
SFacet |
numericSliders(STargeter t,
int width,
java.lang.String hints)
Creates a facet defining one or more sliders exposing the target of t or those of its elements. |
ProvidingCache |
providingCache()
|
static void |
resetCounts()
|
SFacet |
rowPanel(STargeter t,
int hgap,
int vgap,
java.lang.String hints,
SFacet... contents)
Creates an area facet defining a containing panel. |
SFacet |
rowPanel(STargeter t,
SFacet... contents)
Creates an area facet defining a containing panel with special layout behaviour. |
SFacet[] |
rowPanels(SFacet[][] facets,
STargeter t,
java.lang.String hints)
Wraps facet arrays in row panels. |
SurfaceServices |
services()
/** Implements interface method. |
void |
setAppProvidingCache(ProvidingCache cache)
|
SFacet |
sidebar()
Implements interface method. |
SFacet |
simpleMastered(STargeter t,
FacetMaster.Simple master)
Creates a simple facet with a custom panel. |
SFacet |
spacerTall(int gap)
Creates a facet defining an empty panel for use as a vertical spacer. |
SFacet |
spacerWide(int gap)
Creates a facet defining an empty panel for use as a horizontal spacer. |
StatefulViewable.ClipperSource |
statefulClipperSource(boolean useSystemClipboard)
|
SFacet |
status()
Implements interface method. |
MountFacet |
switchMount(java.lang.String title)
Creates a facet mount that can switch its visible contents. |
static SIndexing |
switchMountIndexing(SFacet mount,
SIndexing.Coupler coupler)
Creates an indexing setting the facet to be displayed by the facet passed. |
SFacet |
tabMount(STargeter targeter,
SFacet[] facets,
java.lang.String[] titles)
|
SFacet |
textualField(STargeter t,
int cols,
java.lang.String hints)
Creates a facet defining a single-line text field. |
SFacet |
textualLabel(STargeter t,
java.lang.String hints)
Creates a facet defining a single-line variable text label. |
SFacet |
togglingButtons(STargeter t,
java.lang.String hints)
Creates a facet defining a toggle button or button panel. |
SFacet |
togglingCheckboxes(STargeter t,
java.lang.String hints)
Creates a facet defining a checkbox or checkbox panel. |
SFacet |
togglingCheckboxMenu(STargeter t,
java.lang.String hints)
Creates a facet defining a checkbox sub-menu. |
SFacet |
togglingCheckboxMenuItems(STargeter t,
java.lang.String hints)
Creates a facet defining one or more checkbox menu items. |
SFacet |
toolbar()
Implements interface method. |
SFacet |
toolGroups(STargeter t,
java.lang.String hints,
SFacet... contents)
Creates an area facet defining groups of facets. |
java.lang.String |
toString()
|
SFacet |
triggerButtons(STargeter t,
java.lang.String hints)
Creates a facet defining one or more pushbuttons. |
SFacet |
triggerMenu(STargeter t,
java.lang.String hints)
Creates a facet defining an action menu. |
SFacet |
triggerMenuItems(STargeter t,
java.lang.String hints)
Creates a facet defining one or more action menu items. |
static java.lang.String |
version()
|
void |
warningCritical(java.lang.String appTitle,
java.lang.Exception e,
boolean inOpen)
|
MenuFacets |
windowMenuFacets(SContentRootTargeter rootTargeter,
boolean withLayout)
Creates facets for an application window menu. |
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.app.AppServices |
---|
coupleAppWatcher |
Field Detail |
---|
public static final int GRAPH_NONE
public static final int GRAPH_APP
public static final int GRAPH_DIALOGS
public static final int MENU_APP
public static final int MENU_EDIT
public static final int MENU_PANE
public static final int MENU_WINDOW
public static final int MENU_HELP
public static boolean graphBuild
public static boolean graphFindNow
public static final java.lang.String GRAPH_FIND_NONE
public static java.lang.String findGraphValue
protected static final OffsetPath GRAPH_NO_PATH
public static int graphShowWhere
public static int graphFindAt
public static Shade panelShade
May be null
to signify use of toolkit defaults.
public static FacetFactory.SurfaceStyle surfaceStyle
public static int facets
public static int dragNotifyPause
public static boolean notifyInterim
public static boolean dragNotifyWait
public static final java.lang.String TITLE_CORE_MENU
public static final java.lang.String TITLE_FILE_MENU
public static final java.lang.String TITLE_EDIT_MENU
public static final java.lang.String TITLE_WINDOW_MENU
public static final java.lang.String TITLE_HELP_MENU
public static final facets.facet.toolkit.KitFacet BREAK
Interpreted as follows:
rowPanel
methods, as a row breakitems
methods, as a menu divider
public static final facets.facet.toolkit.KitFacet NO_FACET
Interpreted as follows:
rowPanel
methods, as a row breakitems
methods, as a menu divider
public static final java.lang.Integer[] fontSizes
public static int fontSizeAt
public static final SIndexing fontIndexing
public static final java.lang.String TREE_EXPAND
public static final java.lang.String TREE_COLLAPSE
public static final java.lang.String HINT_NONE
public static final java.lang.String HINT_EXTRAS_PANE
public static final java.lang.String HINT_NO_FLASH
public static final java.lang.String HINT_BARE
public static final java.lang.String HINT_TALL
public static final java.lang.String HINT_TEXT_FONT
public static final java.lang.String HINT_LABEL_AUTOCLEAR
public static final java.lang.String HINT_TITLE2
public static final java.lang.String HINT_TITLE3
public static final java.lang.String HINT_SQUARE
public static final java.lang.String HINT_SPREAD
public static final java.lang.String HINT_GRID
public static final java.lang.String HINT_DEBUG
public static final java.lang.String HINT_USAGE_PANEL
public static final java.lang.String HINT_USAGE_FORM
public static final java.lang.String HINT_PAINT_CACHE_DEEP
public static final java.lang.String HINT_NO_FOCUS
public static final java.lang.String HINT_PANEL_CENTER
public static final java.lang.String HINT_PANEL_MIDDLE
public static final java.lang.String HINT_PANEL_RIGHT
public static final java.lang.String HINT_PANEL_BELOW
public static final java.lang.String HINT_PANEL_ABOVE
public static final java.lang.String HINT_PANEL_INSET
public static final java.lang.String HINT_PANEL_BORDER
public static final java.lang.String HINT_NUMERIC_NUDGERS_FIRST
public static final java.lang.String HINT_NUMERIC_UNGROUPED
public static final java.lang.String HINT_NUMERIC_FIELDS
public static final java.lang.String HINT_SLIDER_TICKS
public static final java.lang.String HINT_SLIDER_LABELS
public static final java.lang.String HINT_SLIDER_LOCAL
public static final java.lang.String HINT_SLIDER_FIELDS_TICKS_LABELS
public static final java.lang.String HINT_MENU_NO_MNEMONICS
public static final java.lang.String HINT_MENU_PRELOAD
public static final java.lang.String HINT_INDEXING_SELECT
public static final java.lang.String HINT_TOOLTIPS
protected final facets.facet.toolkit.Kit kit
Constructor Detail |
---|
public FacetFactory(FacetFactory src)
AppHost.LayoutFeatures
.
src
- the instance whose members will be sharedMethod Detail |
---|
public static void fillFontSizes(int kitMidSize)
public static double fontFactor()
public static FacetFactory newDesktopCore(FacetAppSpecifier spec)
FacetFactory
for use in a desktop application.
Widgets will be constructed using a toolkit of the type specified by
spec
; applications can use the builder returned as the
core of a custom builder.
spec
- define the widget toolkit/look-and-feelpublic static FacetFactory newAppletCore(FacetAppSpecifier spec, FacetFactory.SurfaceStyle style, Shade panelShade)
FacetFactory
for use in an applet.
Widgets will be constructed using the Swing toolkit in a suitable look-and-feel.
spec
- for use with FacetAppSurface
style
- sets L&FpanelShade
- sets panel shade for browser contentStylepublic final FacetFactory.AppletHost appletHostWrap(javax.swing.JMenuBar menuBar)
The SHost
returned is guaranteed to wrap a
Component
.
menuBar
- should be passed from the hosting applet.public final AppHost newDesktopHost(FacetAppSurface app)
AppHost
for a desktop app.
app
- will return the host in SSurface.host()
WindowAppHost
supplied by the toolkit specified in
FacetAppSpecifier.toolkitType()
public final AreaFacets areas()
public SFacet[] menus()
menus
in interface AppHost.LayoutFeatures
null
by defaultpublic SFacet toolbar()
toolbar
in interface AppHost.LayoutFeatures
null
by defaultpublic SFacet sidebar()
sidebar
in interface AppHost.LayoutFeatures
null
by defaultpublic SFacet status()
status
in interface AppHost.LayoutFeatures
null
by defaultpublic SFacet extras()
extras
in interface AppHost.LayoutFeatures
null
by defaultpublic SurfaceServices services()
services
in interface AppHost.LayoutFeatures
null
by defaultprotected final SFacet[] newAdjustedMenus(FacetAppSurface app, SContentRootTargeter root)
AppSpecifier
.
adjustMenuRoots(MenuFacets[])
protected STargeter findPaneTargeter(SContentRootTargeter root)
STargeter
targeting the return of
AreaFacets.panesGetTargets(SAreaTarget)
.
STargeter
or null
protected MenuFacets[] adjustMenuRoots(MenuFacets[] menus)
menus
- created in newAdjustedMenus(FacetAppSurface, SContentRootTargeter)
menus
public final MenuFacets windowMenuFacets(SContentRootTargeter rootTargeter, boolean withLayout)
The MenuFacets
created by this method
returns a menu facet retargeted on the indexing of the surface root,
optionally appended to facets retargeted on elements defined
in AppActions
.
rootTargeter
- is passed to the MenuFacets
createdwithLayout
- include layout sub-menu?public final MenuFacets helpMenuFacets(SContentRootTargeter rootTargeter)
The MenuFacets
created by this method
returns menu facets retargeted on elements defined
in AppActions
.
rootTargeter
- is passed to the MenuFacets
created.public final SFacet[] editTools(SContentRootTargeter t)
Calls toolGroups(STargeter, String, SFacet...)
with facets
retargeted on elements provided by SContentRootTargeter.viewer()
and indexed by ViewerTarget.ELEMENTS_VIEWABLE
.
public final SFacet extras(AreaTargeter targeter)
public final StatefulViewable.ClipperSource statefulClipperSource(boolean useSystemClipboard)
public final void warningCritical(java.lang.String appTitle, java.lang.Exception e, boolean inOpen)
warningCritical
in interface AppServices
public final void setAppProvidingCache(ProvidingCache cache)
setAppProvidingCache
in interface AppServices
public final ProvidingCache providingCache()
public static java.lang.String newCountsText()
public final AppWatcher coupleAppWatcher(AppWatcher.WatcherCoupler coupler)
public final SFacet colorChooser(STargeter rgb)
rgb
- must be retargeted on a SNumeric
, whose value is
interpreted as defining a Shade
.public final SFacet fill()
Used after BREAK
it fills the bottom of the panel.
public final SFacet indexingIteratorMenu(STargeter t, java.lang.String hints)
t
- must be targeted on an SIndexing
; its coupler defines the itemshints
- public final SFacet indexingIteratorButtons(STargeter t, java.lang.String hints)
t
- must be targeted on an SIndexing
; its coupler defines the itemshints
- one or more FacetFactory
HINT
constants concatenatedpublic final SFacet indexingIteratorItems(STargeter t)
t
- must be targeted on an SIndexing
; its coupler defines the itemspublic final SFacet indexingDropdownList(STargeter t, java.lang.String hints)
Editable behaviour of the selected item can be defined by creating
the indexing target with a Facets.ComboCoupler
.
t
- must be targeted on an SIndexing
hints
- one or more FacetFactory
HINT
constants concatenatedpublic final SFacet indexingPaneSingle(STargeter t, int width, int rows, java.lang.String hints)
t
- must be targeted on an SIndexing
width
- pixel widthrows
- visible items counthints
- one or more FacetFactory
HINT
constants concatenatedpublic final SFacet indexingPaneChecked(STargeter t, int width, int rows, java.lang.String hints)
t
- must be targeted on an SIndexing
width
- pixel widthrows
- visible items counthints
- one or more FacetFactory
HINT
constants concatenatedpublic final SFacet indexingPaneMultiple(STargeter t, int width, int rows, java.lang.String hints)
t
- must be targeted on an SIndexing
width
- pixel widthrows
- visible items counthints
- one or more FacetFactory
HINT
constants concatenatedpublic final SFacet indexingRadioButtonMenu(STargeter t, java.lang.String hints)
t
- must be retargeted on an SIndexing
; its indexables
will appear in the menupublic final SFacet indexingRadioButtonMenuItems(STargeter t, java.lang.String hints)
t
- must be retargeted on an SIndexing
; its indexables will appear as the
itemshints
- one or more FacetFactory
HINT
constants concatenatedpublic final SFacet indexingRadioButtons(STargeter t, java.lang.String hints)
t
- must be retargeted on an indexinghints
- one or more FacetFactory
HINT
constants concatenatedpublic final SFacet indexingRadioButtonSingle(STargeter t, int index, java.lang.String hints)
t
- must be retargeted on an SIndexing
index
- the indexable to be exposed by the buttonhints
- one or more FacetFactory
HINT
constants concatenatedpublic final SFacet menuRoot(MenuFacets content)
The menu will check MenuFacets.getFacets()
on each retargeting
and update its items accordingly.
content
- content supplying menu members and titlepublic final SFacet menuRoot(STargeter t, java.lang.String title, SFacet... facets)
Calls menuRoot(MenuFacets)
with a trivial subclass constructed
from the parameters.
public final SFacet numericFields(STargeter t, java.lang.String hints)
t
or those of its elements.
t
- must be retargeted on a numeric or a grouping of numericshints
- one or more FacetFactory
HINT
constants concatenatedpublic final SFacet numericNudgeButtons(STargeter t, java.lang.String hints)
t
or those of its elements.
t
- must be retargeted on a numeric or a grouping of numericshints
- one or more FacetFactory
HINT
constants concatenatedpublic final SFacet numericNudgeMenu(STargeter t, java.lang.String hints)
t
defining
a pair of action items.
t
- must be retargeted on a numeric or a grouping of numericshints
- public final SFacet[] numericNudgeMenuItems(STargeter t, java.lang.String hints)
Facets attached to the elements
of t
each define a pair of action items.
t
- must be retargeted on a numeric or a grouping of numericshints
- public final SFacet[] numericNudgeMenus(STargeter t, java.lang.String hints)
Facets attached to the elements
of t
each define sub-menu containing a pair of action items.
t
- must be retargeted on a numeric or a grouping of numericshints
- public final SFacet numericSliders(STargeter t, int width, java.lang.String hints)
t
or those of its elements.
t
- must be retargeted on a numeric or a grouping of numericswidth
- the width of each sliderhints
- one or more FacetFactory
HINT
constants concatenatedpublic final SFacet rowPanel(STargeter t, int hgap, int vgap, java.lang.String hints, SFacet... contents)
The panel uses a flow-type layout for each row, creating a new row for
each occurrence in contents
of class constant BREAK
.
t
- will usually be retargeted on a framehgap
- horizontal gap between panels abstracted by contents
vgap
- vertical gap between panels abstracted by contents
hints
- one or more Facets HINT
constants concatenatedcontents
- panel-type facet created using FacetFactory
,
with new rows denoted by BREAK
public final SFacet rowPanel(STargeter t, SFacet... contents)
The panel uses a flow-type layout for each row, creating a new row for
each occurrence in contents
of class constant BREAK
.
Panels abstracted by contents
are aligned left, with
zero horizontal and vertical separation.
t
- will usually be retargeted on a framecontents
- panel-type facet created using FacetFactory
,
with new rows denoted by BREAK
public final SFacet[] rowPanels(SFacet[][] facets, STargeter t, java.lang.String hints)
facets
- the arrays to wrapt
- will control all panelshints
- can set alignmentpublic final SFacet spacerTall(int gap)
gap
- the vertical gap requiredpublic final SFacet spacerWide(int gap)
gap
- the horizontal gap requiredpublic final MountFacet switchMount(java.lang.String title)
Set the contents with MountFacet.setFacets(SFacet...)
;
and a coupler for the indexing with
switchMountIndexing(SFacet, facets.core.superficial.SIndexing.Coupler)
.
title
- will be used for the controlling indexingpublic static final SIndexing switchMountIndexing(SFacet mount, SIndexing.Coupler coupler)
mount
- must have been created using switchMount
.coupler
- is attached to the indexingpublic final SFacet hideMount(STargeter targeter, SFacet contents, java.lang.String hints)
public final void hideMountSetHidden(SFacet mount, boolean hidden)
public final SFacet tabMount(STargeter targeter, SFacet[] facets, java.lang.String[] titles)
public final SFacet textualField(STargeter t, int cols, java.lang.String hints)
t
- must be retargeted on a textualhints
- one or more FacetFactory
HINT
constants concatenatedpublic final SFacet textualLabel(STargeter t, java.lang.String hints)
t
- must be retargeted on a textualhints
- one or more FacetFactory
HINT
constants concatenatedpublic final SFacet togglingButtons(STargeter t, java.lang.String hints)
t
- must be retargeted on a toggling or a grouping of togglingshints
- one or more FacetFactory
HINT
constants concatenatedpublic final SFacet triggerButtons(STargeter t, java.lang.String hints)
t
- must be retargeted on a trigger or a grouping of triggershints
- one or more FacetFactory
HINT
constants concatenatedpublic final SFacet togglingCheckboxes(STargeter t, java.lang.String hints)
t
- must be retargeted on a toggling or a grouping of togglingshints
- one or more FacetFactory
HINT
constants concatenatedpublic final SFacet togglingCheckboxMenu(STargeter t, java.lang.String hints)
t
- must be retargeted on a toggling or a grouping of togglingshints
- public final SFacet triggerMenu(STargeter t, java.lang.String hints)
t
- must be retargeted on a trigger or a grouping of triggershints
- public final SFacet togglingCheckboxMenuItems(STargeter t, java.lang.String hints)
t
- must be retargeted on a toggling or a grouping of togglingshints
- public final SFacet triggerMenuItems(STargeter t, java.lang.String hints)
t
- must be retargeted on a trigger or a grouping of triggershints
- public final SFacet toolGroups(STargeter t, java.lang.String hints, SFacet... contents)
t
- will usually be retargeted on a framecontents
- tool-type facets created using FacetFactory
public final java.lang.String toString()
toString
in class java.lang.Object
public final SFacet simpleMastered(STargeter t, FacetMaster.Simple master)
The master passed is cast to an appropriate base class for the
toolkit used by the FacetFactory
.
t
- must be retargeted on an appropriate targetmaster
- must build a panel capable of exposing a target of t
protected final SFacet newExtrasMount(AreaTargeter targeter, ValueNode stateApp, SFacet graph, SFacet help)
public static java.lang.String version()
public static void resetCounts()
public static final SFacet[] join(SFacet[] front, SFacet[] back)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |