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.AbstractUICell
          extended by org.efaps.ui.wicket.models.cell.UITableCell
              extended by org.efaps.ui.wicket.models.cell.UIFormCell
All Implemented Interfaces:
Serializable, org.apache.wicket.IClusterable
Direct Known Subclasses:
UIFormCellChart, 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 5888 2010-12-01 02:44:58Z jan@moxter.net $
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, String _cellValue, String _cellTitle, String _icon, String _label, String _attrTypeName)
          Constructor.
UIFormCell(AbstractUIObject _parent, org.efaps.admin.datamodel.ui.FieldValue _fieldvalue, String _cellValue, String _cellTitle, String _label, String _attrTypeName)
          Constructor used on search and create.
 
Method Summary
 String getCellLabel()
          This is the getter method for the instance variable cellLabel.
 int getRowSpan()
          This is the getter method for the instance variable rowSpan.
 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.
 
Methods inherited from class org.efaps.ui.wicket.models.cell.UITableCell
executeEvents, getAlign, getAutoCompletion, getCellTitle, getCompareValue, getFieldUpdate, getFieldUpdateEvent, getIcon, getPicker, getReference, isAutoComplete, isCheckOut, isFieldUpdate, isFixedWidth, isMultiRows, isValuePicker, setAutoComplete, setCellTitle, setReference
 
Methods inherited from class org.efaps.ui.wicket.models.cell.AbstractUICell
getAttribute, getCellValue, getComponent, getDisplay, getField, getFieldId, getInstanceFromManager, getName, getParent, getTarget, getUiClass, hasInstanceManager, setCellValue, setComponent, toString
 
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, wait, wait, wait
 

Constructor Detail

UIFormCell

public UIFormCell(AbstractUIObject _parent,
                  org.efaps.admin.datamodel.ui.FieldValue _fieldvalue,
                  String _cellValue,
                  String _cellTitle,
                  String _label,
                  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,
                  String _cellValue,
                  String _cellTitle,
                  String _icon,
                  String _label,
                  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 String getTypeName()
This is the getter method for the instance variable attrTypeName .

Returns:
value of instance variable attrTypeName

getCellLabel

public 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


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