JavaGantt 2011.1 API

eu.beesoft.gaia.swing.builder
Class AbstractWindowBuilder<T extends java.awt.Window>

java.lang.Object
  extended by eu.beesoft.gaia.util.ObjectBuilder<T>
      extended by eu.beesoft.gaia.swing.builder.SwingBuilder<T>
          extended by eu.beesoft.gaia.swing.builder.ComponentBuilder<T>
              extended by eu.beesoft.gaia.swing.builder.ContainerBuilder<T>
                  extended by 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:


Constructor Summary
AbstractWindowBuilder()
           
 
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.ContainerBuilder
findBoundData, getBoundValueFromComponent, initLayout, isBindable, setBoundValueToComponent
 
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.swing.builder.SwingBuilder
getBindableChildren, getBinding, getBoundData, getPropertyFromResourceBundle, getValueFromBoundObject, initBinding, parseDimension, setBoundData, setValueToBoundObject
 
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
 

Constructor Detail

AbstractWindowBuilder

public AbstractWindowBuilder()
Method Detail

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

JavaGantt 2011.1 API