wt.clients.beans.selectors
Class ComponentContext

java.lang.Object
  extended bywt.clients.beans.selectors.ComponentContext
All Implemented Interfaces:
Externalizable, Serializable

public class ComponentContext
extends Object
implements Externalizable

This class contains information about the context for the ComponentDelegate. Specifically, it tells the ComponentDelegate if the mode is VIEW, CREATE, or UPDATE, allowing the delegate to construct an appropriate widget based on the mode.

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private  Container container
           
static int CREATE_MODE
           
static int DEFAULT_MAX_TEXT_FIELD_LENGTH
           
private  int maxTextFieldLength
           
private  int mode
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
static int UPDATE_MODE
           
private static String versionID
           
static int VIEW_MODE
           
 
Constructor Summary
ComponentContext()
           
 
Method Summary
 Container getContainer()
          Gets the value of the attribute: container.
 int getMaxTextFieldLength()
          Gets the value of the attribute: maxTextFieldLength.
 int getMode()
          Gets the value of the attribute: mode.
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
private  void readOldVersion(ObjectInput input, long readSerialVersionUID)
          Reads the non-transient fields of this class from an external source, which is not the current version.
 void setContainer(Container a_Container)
          Sets the value of the attribute: container.
 void setMaxTextFieldLength(int a_MaxTextFieldLength)
          Sets the value of the attribute: maxTextFieldLength.
 void setMode(int a_Mode)
          Sets the value of the attribute: mode.
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

versionID

private static final String versionID
See Also:
Constant Field Values

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

mode

private int mode

container

private Container container

UPDATE_MODE

public static final int UPDATE_MODE
See Also:
Constant Field Values

CREATE_MODE

public static final int CREATE_MODE
See Also:
Constant Field Values

VIEW_MODE

public static final int VIEW_MODE
See Also:
Constant Field Values

maxTextFieldLength

private int maxTextFieldLength

DEFAULT_MAX_TEXT_FIELD_LENGTH

public static final int DEFAULT_MAX_TEXT_FIELD_LENGTH
See Also:
Constant Field Values
Constructor Detail

ComponentContext

public ComponentContext()
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readOldVersion

private void readOldVersion(ObjectInput input,
                            long readSerialVersionUID)
                     throws IOException,
                            ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
Throws:
IOException
ClassNotFoundException

getMode

public int getMode()
Gets the value of the attribute: mode.

Returns:
int

setMode

public void setMode(int a_Mode)
             throws WTPropertyVetoException
Sets the value of the attribute: mode.

Parameters:
a_Mode -
Throws:
WTPropertyVetoException

getContainer

public Container getContainer()
Gets the value of the attribute: container.

Returns:
java.awt.Container

setContainer

public void setContainer(Container a_Container)
                  throws WTPropertyVetoException
Sets the value of the attribute: container.

Parameters:
a_Container -
Throws:
WTPropertyVetoException

getMaxTextFieldLength

public int getMaxTextFieldLength()
Gets the value of the attribute: maxTextFieldLength.

Returns:
int

setMaxTextFieldLength

public void setMaxTextFieldLength(int a_MaxTextFieldLength)
                           throws WTPropertyVetoException
Sets the value of the attribute: maxTextFieldLength.

Parameters:
a_MaxTextFieldLength -
Throws:
WTPropertyVetoException