jet.html.impl
Class JetDisplayMessage

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.JetDisplayMessage
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Decodeable, JetChildComponent, JetComponent, JetDisplayMessage, JetOutputComponent

public class JetDisplayMessage
extends JetOutputComponent
implements JetDisplayMessage

This class just renders the given content to the form

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.util.List<JetMessage> messages
          The message to display
private  java.lang.String refid
          ref id - reference to the component for which the messages are
 
Fields inherited from class jet.html.core.JetComponent
eventSupport
 
Constructor Summary
JetDisplayMessage(java.lang.String identifier)
          Creates new Component - name and styleclass would be the same as identifier
JetDisplayMessage(java.lang.String identifier, java.lang.String styleclass)
          Creates new Component
JetDisplayMessage(java.lang.String identifier, java.lang.String name, java.lang.String styleclass)
          Creates new Component
 
Method Summary
 void addMessage(JetMessage message)
          Sets the message
 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.util.List getMessages()
          Returns the message
 java.lang.String getRefid()
          Returns the refid
 void reset()
           
 void setRefid(java.lang.String refid)
          Set the refid
 
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.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

messages

private java.util.List<JetMessage> messages
The message to display


refid

private java.lang.String refid
ref id - reference to the component for which the messages are

Constructor Detail

JetDisplayMessage

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

Parameters:
identifier - the identifier

JetDisplayMessage

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

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

JetDisplayMessage

public JetDisplayMessage(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

setRefid

public void setRefid(java.lang.String refid)
Set the refid

Specified by:
setRefid in interface JetDisplayMessage
Parameters:
refid - reference id

getRefid

public java.lang.String getRefid()
Returns the refid

Specified by:
getRefid in interface JetDisplayMessage
Returns:
String refid

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 JetDisplayMessage
Specified by:
decodeForm in class JetComponent
Parameters:
builder - builder to use

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 JetDisplayMessage
Specified by:
clone in class JetComponent
Returns:
Object the clone

getMessages

public java.util.List getMessages()
Returns the message

Specified by:
getMessages in interface JetDisplayMessage
Returns:
String message

addMessage

public void addMessage(JetMessage message)
Sets the message

Specified by:
addMessage in interface JetDisplayMessage
Parameters:
message - to render

reset

public void reset()
Specified by:
reset in interface JetDisplayMessage