at.knowcenter.wag.egov.egiz.table
Class Entry

java.lang.Object
  extended by at.knowcenter.wag.egov.egiz.table.Entry
All Implemented Interfaces:
Serializable

public class Entry
extends Object
implements Serializable

This class implements a table entry for different types. A table entry can be styled and setting there column dimensions. The default value for the column dimension is 1. To declare the type of the entry use the public TYPE_ definitions.

Author:
wlackner
See Also:
Serialized Form

Field Summary
static int TYPE_CAPTION
          Type for a text entry.
static int TYPE_IMAGE
          Type for an image entry.
static int TYPE_TABLE
          Type for a table entry.
static int TYPE_VALUE
          Type for a text entry.
 
Constructor Summary
Entry()
          The empty constructor.
Entry(int type, Object value, String key)
          A constructor setting the type and the value.
 
Method Summary
 int getColSpan()
           
 String getKey()
           
 Style getStyle()
           
 int getType()
           
 Object getValue()
           
 boolean isNoWrap()
           
 void setColSpan(int colSpan)
           
 void setKey(String key)
           
 void setNoWrap(boolean noWrap)
           
 void setStyle(Style style)
           
 void setType(int type)
           
 void setValue(Object value)
           
 String toString()
          The toString method, used for tests or debugging.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_CAPTION

public static final int TYPE_CAPTION
Type for a text entry.

See Also:
Constant Field Values

TYPE_VALUE

public static final int TYPE_VALUE
Type for a text entry.

See Also:
Constant Field Values

TYPE_IMAGE

public static final int TYPE_IMAGE
Type for an image entry.

See Also:
Constant Field Values

TYPE_TABLE

public static final int TYPE_TABLE
Type for a table entry.

See Also:
Constant Field Values
Constructor Detail

Entry

public Entry()
The empty constructor.


Entry

public Entry(int type,
             Object value,
             String key)
A constructor setting the type and the value.

Parameters:
type - the entry type to set
value - the entry value to set
Method Detail

getStyle

public Style getStyle()
Returns:
Returns the entry style.

setStyle

public void setStyle(Style style)
Parameters:
style - The style to set.

getType

public int getType()
Returns:
Returns the entry type.

setType

public void setType(int type)
Parameters:
type - The type to set.

getValue

public Object getValue()
Returns:
Returns the entry value.

setValue

public void setValue(Object value)
Parameters:
value - The value to set.

getKey

public String getKey()
Returns:
Returns the key.

setKey

public void setKey(String key)
Parameters:
key - The key to set.

getColSpan

public int getColSpan()
Returns:
Returns the colSpan.

setColSpan

public void setColSpan(int colSpan)
Parameters:
colSpan - The colSpan to set.

isNoWrap

public boolean isNoWrap()
Returns:
Returns the wrap indicator.

setNoWrap

public void setNoWrap(boolean noWrap)
Parameters:
noWrap - The wrap indicator to set.

toString

public String toString()
The toString method, used for tests or debugging.

Overrides:
toString in class Object


Copyright © 2006-2007 EGIZ - E-Government Innovationszentrum. All Rights Reserved.