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

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
                  extended by org.efaps.ui.wicket.models.cell.UIFormCellSet
All Implemented Interfaces:
Serializable, org.apache.wicket.IClusterable

public class UIFormCellSet
extends UIFormCell

Responsable to hold the data for an AttributeSet.

Version:
$Id: UIFormCellSet.java 5038 2010-07-22 22:49:33Z jan.moxter $
Author:
The eFaswp Team
See Also:
Serialized Form

Constructor Summary
UIFormCellSet(AbstractUIObject _parent, org.efaps.admin.datamodel.ui.FieldValue _fieldValue, org.efaps.db.Instance _instance, String _value, String _icon, String _label, boolean _edit)
           
 
Method Summary
 void add(int _yCoord, int _xCoord, UIFormCell _value)
           
 void addDefiniton(int _xCoord, UIFormCell _uiFormCell)
           
 void addInstance(int _yCoord, org.efaps.db.Instance _instance)
          Ad an instance to an y-coordinate.
 UIFormCell getDefinition(int _xCoord)
           
 org.efaps.db.Instance getInstance(int _yCoord)
           
 int getNewCount()
           
 Map<Integer,UIFormCell> getX2definition()
          Getter method for the instance variable x2definition.
 int getXsize()
           
 int getYsize()
           
 Map<Integer,Map<Integer,UIFormCell>> getYX2value()
          Getter method for the instance variable yx2value.
 UIFormCell getYXValue(int _yCoord, int _xCoord)
           
 boolean isEditMode()
           
 
Methods inherited from class org.efaps.ui.wicket.models.cell.UIFormCell
getCellLabel, getRowSpan, getTypeName, isHideLabel, isRequired
 
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

UIFormCellSet

public UIFormCellSet(AbstractUIObject _parent,
                     org.efaps.admin.datamodel.ui.FieldValue _fieldValue,
                     org.efaps.db.Instance _instance,
                     String _value,
                     String _icon,
                     String _label,
                     boolean _edit)
              throws org.efaps.util.EFapsException
Parameters:
_parent - parent object
_fieldValue - FieldValue
_instance - instance
_value - value
_icon - icon
_label - Label
_edit - edit mode or not
Throws:
org.efaps.util.EFapsException - on error
Method Detail

getNewCount

public int getNewCount()
Returns:
new index number for the y-coordinate

isEditMode

public boolean isEditMode()
Returns:
is this edit mode

add

public void add(int _yCoord,
                int _xCoord,
                UIFormCell _value)
Parameters:
_xCoord - x-coordinate
_yCoord - y-coordinate
_value - Value

getYsize

public int getYsize()
Returns:
size of y

getXsize

public int getXsize()
Returns:
size of x

getYXValue

public UIFormCell getYXValue(int _yCoord,
                             int _xCoord)
Parameters:
_xCoord - x-coordinate
_yCoord - y-coordinate
Returns:
value

getYX2value

public Map<Integer,Map<Integer,UIFormCell>> getYX2value()
Getter method for the instance variable yx2value.

Returns:
value of instance variable yx2value

getX2definition

public Map<Integer,UIFormCell> getX2definition()
Getter method for the instance variable x2definition.

Returns:
value of instance variable x2definition

addDefiniton

public void addDefiniton(int _xCoord,
                         UIFormCell _uiFormCell)
                  throws org.efaps.util.cache.CacheReloadException
Parameters:
_xCoord - x-coordinate
_uiFormCell - UIFormCell used as definition
Throws:
org.efaps.util.cache.CacheReloadException - on error

getDefinition

public UIFormCell getDefinition(int _xCoord)
Parameters:
_xCoord - x-coordinate the definition is wanted fot
Returns:
UIFormCell used as defintion

addInstance

public void addInstance(int _yCoord,
                        org.efaps.db.Instance _instance)
Ad an instance to an y-coordinate.

Parameters:
_yCoord - y-coordinate
_instance - Instance

getInstance

public org.efaps.db.Instance getInstance(int _yCoord)
Parameters:
_yCoord - y-coordinate
Returns:
Instance


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