eu.beesoft.gaia.swing.builder
Class AbstractWindowBuilder<T extends java.awt.Window>
java.lang.Object
eu.beesoft.gaia.util.ObjectBuilder<T>
eu.beesoft.gaia.swing.builder.SwingBuilder<T>
eu.beesoft.gaia.swing.builder.ComponentBuilder<T>
eu.beesoft.gaia.swing.builder.ContainerBuilder<T>
eu.beesoft.gaia.swing.builder.AbstractWindowBuilder<T>
- Type Parameters:
T
- class of object created by this builder
- Direct Known Subclasses:
- DialogBuilder, FrameBuilder, WindowBuilder
public abstract class AbstractWindowBuilder<T extends java.awt.Window>
- extends ContainerBuilder<T>
Abstract superclass of all Swing component builders that produce dialogs or
frames. Supports these properties:
- alwaysOnTop - enabled values are true or false
- cursor - enabled values are names of the constants from
java.awt.Cursor
- focusableWindowState - enabled values are true or false
- glassPane - enabled value is class name of the glass pane
- locationRelativeTo - enabled values are id of the referenced
builder or string "null"
Method Summary |
protected void |
addSwingChild(ObjectBuilder<?> builder)
Adds an object (component) of the given builder to the container created
by this builder. |
protected void |
initAlwaysOnTop(java.lang.String value)
|
protected void |
initCursor(java.lang.String value)
|
protected void |
initFocusableWindowState(java.lang.String value)
|
protected void |
initGlassPane(java.lang.String value)
|
protected void |
initLocationRelativeTo(java.lang.String value)
|
protected java.awt.Cursor |
parseCursor(java.lang.String value)
Helper method to convert given string to the constant value from class
java.at.Cursor (for example CROSSHAIR_CURSOR). |
Methods inherited from class eu.beesoft.gaia.swing.builder.ComponentBuilder |
addChild, convertValue, createBoundData, getLayoutConstraints, initBackground, initBorder, initEnabled, initFont, initForeground, initId, initLayoutConstraint, initName, initOpaque, initSize, initToolTipText, initVisible, parseColor, parseIcon, setLayoutConstraints |
Methods inherited from class eu.beesoft.gaia.util.ObjectBuilder |
createObject, createObject, getFactory, getChildren, getId, getObject, getParent, getProperties, getProperty, initClass, initObjectProperties, initObjectProperty, parseBoolean, parseClass, parseConstant, parseConstructor, parseDouble, parseInstance, parseInstance, parseInt, parseInt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractWindowBuilder
public AbstractWindowBuilder()
initAlwaysOnTop
protected void initAlwaysOnTop(java.lang.String value)
initCursor
protected void initCursor(java.lang.String value)
parseCursor
protected java.awt.Cursor parseCursor(java.lang.String value)
- Helper method to convert given string to the constant value from class
java.at.Cursor
(for example CROSSHAIR_CURSOR).
- Parameters:
value
- - string to convert
- Returns:
- found Cursor instance
- Throws:
java.lang.RuntimeException
- if cannot find constant with given name
initFocusableWindowState
protected void initFocusableWindowState(java.lang.String value)
initGlassPane
protected void initGlassPane(java.lang.String value)
initLocationRelativeTo
protected void initLocationRelativeTo(java.lang.String value)
addSwingChild
protected void addSwingChild(ObjectBuilder<?> builder)
- Description copied from class:
ContainerBuilder
- Adds an object (component) of the given builder to the container created
by this builder. It is looking for the layout constraints to properly add
the component.
- Overrides:
addSwingChild
in class ContainerBuilder<T extends java.awt.Window>
- Parameters:
builder
- - a builder of the component to add