JavaGantt 2011.1 API

eu.beesoft.gaia.swing.builder
Class ActionBuilder

java.lang.Object
  extended by eu.beesoft.gaia.util.ObjectBuilder<T>
      extended by eu.beesoft.gaia.swing.builder.SwingBuilder<javax.swing.Action>
          extended by eu.beesoft.gaia.swing.builder.ActionBuilder

public class ActionBuilder
extends SwingBuilder<javax.swing.Action>

Builder to produce instances of SwingClientAction. You can use this class to produce any other instance of javax.swing.Action, just add "class" attribute to XML element that describes this action. It supports these properties:


Constructor Summary
ActionBuilder()
           
 
Method Summary
protected  javax.swing.Action createObject()
          Creates object for this builder.
protected  void initAccelerator(java.lang.String value)
           
protected  void initActionCommand(java.lang.String value)
           
protected  void initCommand(java.lang.String value)
           
protected  void initIcon(java.lang.String value)
           
protected  void initId(java.lang.String value)
          Overriden to ensure initialization of name, icon, toolTipText and accelerator from resource bundle.
protected  void initName(java.lang.String value)
           
protected  void initToolTipText(java.lang.String value)
           
 
Methods inherited from class eu.beesoft.gaia.swing.builder.SwingBuilder
convertValue, createBoundData, findBoundData, getBindableChildren, getBinding, getBoundData, getBoundValueFromComponent, getPropertyFromResourceBundle, getValueFromBoundObject, initBinding, isBindable, parseDimension, setBoundData, setBoundValueToComponent, setValueToBoundObject
 
Methods inherited from class eu.beesoft.gaia.util.ObjectBuilder
addChild, 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

ActionBuilder

public ActionBuilder()
Method Detail

createObject

protected javax.swing.Action createObject()
Description copied from class: ObjectBuilder
Creates object for this builder. This method is invoked only once, when properties for builder and the builder's parent (but not children) are set.

Specified by:
createObject in class ObjectBuilder<javax.swing.Action>
Returns:
created object

initId

protected void initId(java.lang.String value)
Overriden to ensure initialization of name, icon, toolTipText and accelerator from resource bundle. If there is no actionCommand or command property set in XML, initializes action command with given id.

Overrides:
initId in class ObjectBuilder<javax.swing.Action>
Parameters:
value - - id to set

initName

protected void initName(java.lang.String value)

initIcon

protected void initIcon(java.lang.String value)

initToolTipText

protected void initToolTipText(java.lang.String value)

initCommand

protected void initCommand(java.lang.String value)

initActionCommand

protected void initActionCommand(java.lang.String value)

initAccelerator

protected void initAccelerator(java.lang.String value)

JavaGantt 2011.1 API