jet.html.impl
Class JetLabel

java.lang.Object
  extended by jet.html.core.JetComponent
      extended by jet.html.core.JetChildComponent
          extended by jet.html.core.JetOutputComponent
              extended by jet.html.impl.JetOutput
                  extended by jet.html.impl.JetLabel
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Decodeable, JetChildComponent, JetComponent, JetLabel, JetOutput, JetOutputComponent

public class JetLabel
extends JetOutput
implements JetLabel

This class renders a html label field

Author:
Markus.Meisters@web.de
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface jet.html.JetChildComponent
JetChildComponent.HasNoParent
 
Field Summary
private  java.lang.String forId
          id of the field related to this label
 
Fields inherited from class jet.html.core.JetComponent
eventSupport
 
Constructor Summary
JetLabel(java.lang.String identifier)
          Creates new Component - name and styleclass would be the same as identifier
JetLabel(java.lang.String identifier, java.lang.String styleclass)
          Creates new Component
JetLabel(java.lang.String identifier, java.lang.String name, java.lang.String styleclass)
          Creates new Component
 
Method Summary
 java.lang.Object clone()
          This method generates a clone of the curent one
 void decodeForm(java.lang.StringBuilder builder, JetContext jetContext)
          This method decodes the form to the given buffer
 java.lang.String getForId()
           
 void setForId(java.lang.String forId)
           
 
Methods inherited from class jet.html.impl.JetOutput
getContent, getEscape, getMessageKey, setContent, setEscape, setMessageKey
 
Methods inherited from class jet.html.core.JetChildComponent
getForm, getParent, isHidden, setParent, toggleHidden
 
Methods inherited from class jet.html.core.JetComponent
addListener, addListener, componentChanged, findComponent, findComponents, getGeneratedComponentIdentifier, getIdentifier, getName, getNewIdentifier, getStyleclass, incrementIdentifier, removeListener, removeListener, setComponentChanged, setContinueIdentifier, setIdentifier, setName, setStyleclass
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jet.html.JetOutput
getContent, getEscape, getMessageKey, setContent, setEscape, setMessageKey
 
Methods inherited from interface jet.html.JetChildComponent
getForm, getParent, isHidden, setParent, toggleHidden
 
Methods inherited from interface jet.html.JetComponent
addListener, addListener, componentChanged, findComponent, findComponents, getIdentifier, getName, getStyleclass, incrementIdentifier, removeListener, removeListener, setComponentChanged, setContinueIdentifier, setIdentifier, setName, setStyleclass
 

Field Detail

forId

private java.lang.String forId
id of the field related to this label

Constructor Detail

JetLabel

public JetLabel(java.lang.String identifier)
Creates new Component - name and styleclass would be the same as identifier

Parameters:
identifier - the identifier

JetLabel

public JetLabel(java.lang.String identifier,
                java.lang.String styleclass)
Creates new Component

Parameters:
identifier - the identifier
styleclass - the css style class

JetLabel

public JetLabel(java.lang.String identifier,
                java.lang.String name,
                java.lang.String styleclass)
Creates new Component

Parameters:
identifier - the identifier
name - the name of the component if different to identifier
styleclass - the css style class
Method Detail

decodeForm

public void decodeForm(java.lang.StringBuilder builder,
                       JetContext jetContext)
This method decodes the form to the given buffer

Specified by:
decodeForm in interface Decodeable
Specified by:
decodeForm in interface JetComponent
Specified by:
decodeForm in interface JetLabel
Specified by:
decodeForm in interface JetOutput
Overrides:
decodeForm in class JetOutput
Parameters:
builder - the Stringbuilder to decode the form
jetContext - the context object

clone

public java.lang.Object clone()
This method generates a clone of the curent one

Specified by:
clone in interface JetComponent
Specified by:
clone in interface JetLabel
Specified by:
clone in interface JetOutput
Overrides:
clone in class JetOutput
Returns:
Object the clone

getForId

public java.lang.String getForId()
Specified by:
getForId in interface JetLabel

setForId

public void setForId(java.lang.String forId)
Specified by:
setForId in interface JetLabel