de.mguennewig.pobjects.metadata
Class FormEntry

java.lang.Object
  extended by de.mguennewig.pobjects.metadata.Column
      extended by de.mguennewig.pobjects.metadata.FormEntry
Direct Known Subclasses:
ButtonEntry, HeadingEntry, LinkEntry, SpacerEntry, TextEntry, ValueEntry

public class FormEntry
extends Column

A form entry describes (usually) a line of an form, including a label and any interactive elements associated with it.

Author:
Michael Günnewig

Field Summary
static int ADD_METHOD
          The add method that allows to extend the array of an ArrayEntry.
static int CHANGED_METHOD
          The method that returns the "changed" status of the element.
static int CLASS_NAME
          The class name of the nested class that holds the element (or elements) for this entry.
static int LAYOUT_NO_HEADER_CELL
          Place the form entry at the beginning of the row, without any leading header cell.
static int LAYOUT_PULL_IN
          Place the form entry after the preceding entry.
static int LAYOUT_PULL_IN_CELL
          Place the form entry after the preceding entry, but in a new table cell.
static int LAYOUT_STANDARD
          Place the form entry in a separate line (default).
 
Fields inherited from class de.mguennewig.pobjects.metadata.Column
GET_METHOD, GET_METHOD_VISUAL, MEMBER_ATTR, MEMBER_ATTR_TYPE, MEMBER_NAME, SET_METHOD
 
Constructor Summary
FormEntry(java.lang.String name, Type type, int layout)
          Creates a new FormEntry.
 
Method Summary
 int getLayout()
           
 java.lang.String name(int variant)
          Returns different names depending on variant for the code generator.
 
Methods inherited from class de.mguennewig.pobjects.metadata.Column
getDescription, getIndex, getName, getSchemaName, getType, setDescription, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_NAME

public static final int CLASS_NAME
The class name of the nested class that holds the element (or elements) for this entry.

See Also:
name(int), Constant Field Values

ADD_METHOD

public static final int ADD_METHOD
The add method that allows to extend the array of an ArrayEntry.

See Also:
name(int), Constant Field Values

CHANGED_METHOD

public static final int CHANGED_METHOD
The method that returns the "changed" status of the element.

See Also:
name(int), Constant Field Values

LAYOUT_STANDARD

public static final int LAYOUT_STANDARD
Place the form entry in a separate line (default).

See Also:
Constant Field Values

LAYOUT_PULL_IN

public static final int LAYOUT_PULL_IN
Place the form entry after the preceding entry.

See Also:
Constant Field Values

LAYOUT_PULL_IN_CELL

public static final int LAYOUT_PULL_IN_CELL
Place the form entry after the preceding entry, but in a new table cell.

See Also:
Constant Field Values

LAYOUT_NO_HEADER_CELL

public static final int LAYOUT_NO_HEADER_CELL
Place the form entry at the beginning of the row, without any leading header cell.

This is only applicable to entries that start a new table row.

See Also:
Constant Field Values
Constructor Detail

FormEntry

public FormEntry(java.lang.String name,
                 Type type,
                 int layout)
Creates a new FormEntry.

Method Detail

getLayout

public final int getLayout()

name

public java.lang.String name(int variant)
Returns different names depending on variant for the code generator.

Overrides:
name in class Column
Returns:
variant return value
Column.MEMBER_ATTR entry<Name>
Column.MEMBER_ATTR_TYPE etype<Name>
CLASS_NAME <Name>
ADD_METHOD add<Name>
CHANGED_METHOD changed<Name>
other values see super class