org.efaps.ui.wicket.models.cell
Class UIFormCell

java.lang.Object
  extended by org.efaps.ui.wicket.models.AbstractInstanceObject
      extended by org.efaps.ui.wicket.models.cell.UIAbstractCell
          extended by org.efaps.ui.wicket.models.cell.UITableCell
              extended by org.efaps.ui.wicket.models.cell.UIFormCell
All Implemented Interfaces:
java.io.Serializable, org.apache.wicket.IClusterable
Direct Known Subclasses:
UIFormCellCmd, UIFormCellSet

public class UIFormCell
extends UITableCell

This class represents the model wich is used for rendering the components of two cells inside a form. The first is holding the label for the second one which contains the value.
It uses a Field as the base for the data.

Version:
$Id: UIFormCell.java 3447 2009-11-29 22:46:39Z tim.moxter $
Author:
The eFaps Team
See Also:
Serialized Form

Constructor Summary
UIFormCell(AbstractUIObject _parent, org.efaps.admin.datamodel.ui.FieldValue _fieldValue, org.efaps.db.Instance _instance, java.lang.String _cellValue, java.lang.String _cellTitle, java.lang.String _icon, java.lang.String _label, java.lang.String _attrTypeName)
          Constructor.
UIFormCell(AbstractUIObject _parent, org.efaps.admin.datamodel.ui.FieldValue _fieldvalue, java.lang.String _cellValue, java.lang.String _cellTitle, java.lang.String _label, java.lang.String _attrTypeName)
          Constructor used on search and create.
 
Method Summary
 java.lang.String getCellLabel()
          This is the getter method for the instance variable cellLabel.
 UIPicker getPicker()
          Getter method for instance variable picker.
 int getRowSpan()
          This is the getter method for the instance variable rowSpan.
 java.lang.String getTypeName()
          This is the getter method for the instance variable attrTypeName .
 boolean isHideLabel()
          This is the getter method for the instance variable hideLabel.
 boolean isRequired()
          This is the getter method for the instance variable required.
 boolean isValuePicker()
          Getter method for instance variable #valuePicker.
 
Methods inherited from class org.efaps.ui.wicket.models.cell.UITableCell
executeEvents, getAlign, getAutoCompletion, getCellTitle, getCompareValue, getFieldUpdate, getFieldUpdateEvent, getIcon, getReference, isAutoComplete, isCheckOut, isFieldUpdate, isFixedWidth, isMultiRows, setReference
 
Methods inherited from class org.efaps.ui.wicket.models.cell.UIAbstractCell
getAttribute, getCellValue, getComponent, getDisplay, getField, getFieldId, getInstanceFromManager, getName, getParent, getTarget, getUiClass, hasInstanceManager, setComponent
 
Methods inherited from class org.efaps.ui.wicket.models.AbstractInstanceObject
getInstance, getInstanceKey, setInstanceKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIFormCell

public UIFormCell(AbstractUIObject _parent,
                  org.efaps.admin.datamodel.ui.FieldValue _fieldvalue,
                  java.lang.String _cellValue,
                  java.lang.String _cellTitle,
                  java.lang.String _label,
                  java.lang.String _attrTypeName)
           throws org.efaps.util.EFapsException
Constructor used on search and create.

Parameters:
_parent - parent ui object
_fieldvalue - FieldValue of the Cell
_cellValue - Value of the Cell
_cellTitle - title for the cell, if null will be set to _cellvalue
_label - Label for the Cell
_attrTypeName - Name of the Type of Attribute
Throws:
org.efaps.util.EFapsException - on error

UIFormCell

public UIFormCell(AbstractUIObject _parent,
                  org.efaps.admin.datamodel.ui.FieldValue _fieldValue,
                  org.efaps.db.Instance _instance,
                  java.lang.String _cellValue,
                  java.lang.String _cellTitle,
                  java.lang.String _icon,
                  java.lang.String _label,
                  java.lang.String _attrTypeName)
           throws org.efaps.util.EFapsException
Constructor.

Parameters:
_parent - parent ui object
_fieldValue - FieldValue used for this Cell
_instance - Instance of the Cell
_cellValue - Value for the Cell
_cellTitle - title for the cell, if null will be set to _cellvalue
_icon - icon of the cell
_label - Label of the Cell
_attrTypeName - Name of the Type of Attribute
Throws:
org.efaps.util.EFapsException - on error
Method Detail

getTypeName

public java.lang.String getTypeName()
This is the getter method for the instance variable attrTypeName .

Returns:
value of instance variable attrTypeName

getCellLabel

public java.lang.String getCellLabel()
This is the getter method for the instance variable cellLabel.

Returns:
value of instance variable cellLabel

isRequired

public boolean isRequired()
This is the getter method for the instance variable required.

Returns:
value of instance variable required

isHideLabel

public boolean isHideLabel()
This is the getter method for the instance variable hideLabel.

Returns:
value of instance variable hideLabel

getRowSpan

public int getRowSpan()
This is the getter method for the instance variable rowSpan.

Returns:
value of instance variable rowSpan

isValuePicker

public boolean isValuePicker()
Getter method for instance variable #valuePicker.

Returns:
value of instance variable #valuePicker

getPicker

public UIPicker getPicker()
Getter method for instance variable picker.

Returns:
value of instance variable picker


Copyright © 2003-2010 The eFaps Team. All Rights Reserved.