JavaGantt 2011.1 API

eu.beesoft.gaia.swing.builder
Class LabelBuilder

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<javax.swing.JLabel>
              extended by eu.beesoft.gaia.swing.builder.LabelBuilder
Direct Known Subclasses:
LinkBuilder

public class LabelBuilder
extends ComponentBuilder<javax.swing.JLabel>

Builder to produce instances of javax.swing.JLabel. It supports these properties:


Constructor Summary
LabelBuilder()
           
 
Method Summary
protected  javax.swing.JLabel createObject()
          Creates object for this builder.
protected  java.lang.Object getBoundValueFromComponent(java.util.Set<java.lang.Object> changedObjects, java.lang.String fullBinding)
          Gets data value from the component created by this builder.
protected  void initHorizontalAlignment(java.lang.String value)
           
protected  void initIcon(java.lang.String value)
           
protected  void initIconTextGap(java.lang.String value)
           
protected  void initId(java.lang.String value)
          Initializes property ID for this value.
protected  void initText(java.lang.String value)
           
protected  void initVerticalAlignment(java.lang.String value)
           
protected  void setBoundValueToComponent(java.lang.Object data, java.lang.String fullBinding)
          Sets given data value to the component created by this builder.
protected  void setLabelFor(java.lang.String value)
           
 
Methods inherited from class eu.beesoft.gaia.swing.builder.ComponentBuilder
addChild, addSwingChild, convertValue, createBoundData, findBoundData, getLayoutConstraints, initBackground, initBorder, initEnabled, initFont, initForeground, 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, isBindable, parseDimension, setBoundData, setValueToBoundObject
 
Methods inherited from class eu.beesoft.gaia.util.ObjectBuilder
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

LabelBuilder

public LabelBuilder()
Method Detail

createObject

protected javax.swing.JLabel 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.JLabel>
Returns:
created object

initId

protected void initId(java.lang.String value)
Description copied from class: ObjectBuilder
Initializes property ID for this value. Sets property to instance variable.

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

initText

protected void initText(java.lang.String value)

initIcon

protected void initIcon(java.lang.String value)

initIconTextGap

protected void initIconTextGap(java.lang.String value)

setLabelFor

protected void setLabelFor(java.lang.String value)

initHorizontalAlignment

protected void initHorizontalAlignment(java.lang.String value)

initVerticalAlignment

protected void initVerticalAlignment(java.lang.String value)

setBoundValueToComponent

protected void setBoundValueToComponent(java.lang.Object data,
                                        java.lang.String fullBinding)
Description copied from class: SwingBuilder
Sets given data value to the component created by this builder. Override this method for specific component. This implementation simply throws RuntimeException to notify programmer about a necessity to override this method.

Overrides:
setBoundValueToComponent in class SwingBuilder<javax.swing.JLabel>
Parameters:
data - - a value to set
fullBinding - - binding to given value from root form object

getBoundValueFromComponent

protected java.lang.Object getBoundValueFromComponent(java.util.Set<java.lang.Object> changedObjects,
                                                      java.lang.String fullBinding)
Description copied from class: SwingBuilder
Gets data value from the component created by this builder. Override this method for specific component. This implementation simply throws RuntimeException to notify programmer about a necessity to override this method.

Overrides:
getBoundValueFromComponent in class SwingBuilder<javax.swing.JLabel>
Parameters:
changedObjects - - collection of changed data objects, add your data object to this if your component's value was changed by user
fullBinding - - binding to component's value from root form object
Returns:
value from component's object

JavaGantt 2011.1 API