|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchrriis.uihierarchy.UIHConfig
The centralized place for UIH configuration. The configuration also retains the information regarding names to components mapping.
Method Summary | |
Accessor |
createAccessor(String names)
Create an accessor for some mapped levels. |
Accessor |
createAccessor(String names,
String excludedNames)
Create an accessor for some mapped levels, with excluding some. |
ComponentCreator |
getComponentCreator(Class objectClass)
Get the component creator associated to an object class. |
static UIHConfig |
getDefault()
Get the default configuration, which is used when nothing specific was configured for a particular instance. |
LayoutHConstraints |
getLayoutConstraints(Class layoutClass)
Get the layout constraints handler associated to a layout class. |
Unit |
getUnit(String unitName)
Get the unit that is registered with the given name. |
boolean |
isAutoRealizing()
Indicate if the hierarchy auto realizes itself at the last close(). |
boolean |
isSwingPreferred()
Indicate if Swing is preferred over AWT. |
void |
registerUnit(Unit unit)
Register a unit, using the names it defines. |
void |
registerUnit(Unit unit,
String[] names)
Register a unit, with some names that define it. |
void |
setAccessorFactory(AccessorFactory accessorFactory)
Set the accessor factory to use when an accessor needs to be created. |
void |
setAutoRealizing(boolean isAutoRealizing)
Set whether the hierarchy will auto realize itself at the last close() or if an explicit call to realize() must
be made after the last close() . |
void |
setComponentCreator(Class objectClass,
ComponentCreator componentCreator)
Register a component creator associated to an object class. |
void |
setDebugger(Debugger debugger)
Set the debugger to use to debug the hierarchy levels. |
void |
setLayoutConstraints(Class layoutClass,
LayoutHConstraints layoutHConstraints)
Register a layout constraints handler associated to a layout class. |
void |
setSwingPreferred(boolean isSwingPreferred)
Set whether Swing is preferred over AWT for implicit component generation. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static UIHConfig getDefault()
public boolean isSwingPreferred()
public void setSwingPreferred(boolean isSwingPreferred)
isSwingPreferred
- True if Swing should be used when available.public boolean isAutoRealizing()
public void setAutoRealizing(boolean isAutoRealizing)
close()
or if an explicit call to realize()
must
be made after the last close()
.
isAutoRealizing
- True if the hierarchy is to realize itself
automatically.public void setLayoutConstraints(Class layoutClass, LayoutHConstraints layoutHConstraints)
layoutClass
- The layout class for which to set the constraints.layoutHConstraints
- The constraints.public LayoutHConstraints getLayoutConstraints(Class layoutClass)
layoutClass
- The layout class for which to set the constraints.
public void setComponentCreator(Class objectClass, ComponentCreator componentCreator)
objectClass
- The class of the object the creator handles.componentCreator
- The creator of components to associate.public ComponentCreator getComponentCreator(Class objectClass)
objectClass
- The class of the object the creator handles.
public void setAccessorFactory(AccessorFactory accessorFactory)
accessorFactory
- The new factory of accessors.public void setDebugger(Debugger debugger)
debugger
- The new debugger.public Accessor createAccessor(String names)
names
- The names of the hierarchy levels to get, in a comma separated
String if more than one name is to be specified.
AccessorFactory
public Accessor createAccessor(String names, String excludedNames)
names
- The names of the hierarchy levels to get, in a comma separated
String if more than one name is to be specified.excludedNames
- The names of the levels to exclude when creating an
accessor on the names.
AccessorFactory
public void registerUnit(Unit unit)
unit
- The unit to register.public void registerUnit(Unit unit, String[] names)
unit
- The unit to register.names
- The names that identify the unit.public Unit getUnit(String unitName)
unitName
- The name of the unit to get.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |