org.objectweb.telosys.screen.core
Class ScreenDataElement

java.lang.Object
  extended byorg.objectweb.telosys.common.TelosysObject
      extended byorg.objectweb.telosys.screen.core.ScreenDataElement
All Implemented Interfaces:
java.io.Serializable

public class ScreenDataElement
extends TelosysObject
implements java.io.Serializable

This class defines a ScreenData element
. logical name
. Java class
. Java instance (mutable)

See Also:
Serialized Form

Constructor Summary
ScreenDataElement(java.lang.String sElementName, java.lang.Class oElementClass)
          Creates a new element (without instance)
 
Method Summary
 void applyBinding()
          Apply the binding of the element if any
 void bindToList(ScreenDataElement oList)
           
 void clearInstance()
          Clear the element instance
 java.lang.Object getInstance()
          Returns the current element instance
 java.lang.Class getInstanceClass()
          Returns the current element class
 java.lang.String getName()
          Returns the current element name
 void newInstance()
          Create a new element instance for this element
 void setInstance(java.lang.Object oInstance)
          Set the new element instance ( general use, binding is not apply here )
 java.lang.String toString()
           
 
Methods inherited from class org.objectweb.telosys.common.TelosysObject
error, error, error, getFlagTrace, info, setFlagTrace, trace, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScreenDataElement

public ScreenDataElement(java.lang.String sElementName,
                         java.lang.Class oElementClass)
Creates a new element (without instance)

Parameters:
sElementName -
oElementClass -
Method Detail

getInstanceClass

public java.lang.Class getInstanceClass()
Returns the current element class

Returns:

getName

public java.lang.String getName()
Returns the current element name

Returns:

getInstance

public java.lang.Object getInstance()
Returns the current element instance

Returns:

setInstance

public void setInstance(java.lang.Object oInstance)
Set the new element instance ( general use, binding is not apply here )

Parameters:
oInstance -

clearInstance

public void clearInstance()
Clear the element instance


applyBinding

public void applyBinding()
Apply the binding of the element if any


newInstance

public void newInstance()
Create a new element instance for this element


bindToList

public void bindToList(ScreenDataElement oList)

toString

public java.lang.String toString()