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

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
All Implemented Interfaces:
java.io.Serializable, org.apache.wicket.IClusterable
Direct Known Subclasses:
UIFormCell

public class UITableCell
extends UIAbstractCell

This class represents the model wich is used for rendering the components of one cell inside a Table.It uses a Field as the base for the data.

Version:
$Id:CellModel.java 1510 2007-10-18 14:35:40Z jmox $
Author:
The eFaps Team
See Also:
Serialized Form

Constructor Summary
UITableCell(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)
          Constructor.
 
Method Summary
 java.util.List<org.efaps.admin.event.Return> executeEvents(java.lang.Object _others, org.efaps.admin.event.EventType _eventType)
          Method to execute the events.
 java.lang.String getAlign()
          Getter method for the instance variable align.
 java.util.List<org.efaps.admin.event.Return> getAutoCompletion(java.lang.Object _others)
          Method to get the auto completion event.
 java.lang.String getCellTitle()
          This is the getter method for the instance variable cellTitle.
 java.lang.Object getCompareValue()
          This is the getter method for the instance variable compareValue .
 java.util.List<org.efaps.admin.event.Return> getFieldUpdate(java.lang.Object _others)
          Method to get the field update event.
 java.lang.String getFieldUpdateEvent()
          Getter method for instance variable fieldUpdateEvent.
 java.lang.String getIcon()
          This is the getter method for the instance variable icon.
 java.lang.String getReference()
          This is the getter method for the instance variable reference.
 boolean isAutoComplete()
          Getter method for instance variable autoComplete.
 boolean isCheckOut()
          This method returns if the field is a link which makes a checkout.
 boolean isFieldUpdate()
          Getter method for instance variable fieldUpdate.
 boolean isFixedWidth()
          This is the getter method for the instance variable fixedWidth.
 boolean isMultiRows()
           
 void setReference(java.lang.String _reference)
          This is the setter method for the instance variable reference.
 
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

UITableCell

public UITableCell(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)
            throws org.efaps.util.EFapsException
Constructor.

Parameters:
_parent - parent ui object
_fieldValue - FieldValue
_cellvalue - Value for the cell
_cellTitle - title for the cell, if null will be set to _cellvalue
_icon - icon of the cell
_instance - Instance
Throws:
org.efaps.util.EFapsException - on error
Method Detail

getAlign

public java.lang.String getAlign()
Getter method for the instance variable align.

Returns:
value of instance variable align

getReference

public java.lang.String getReference()
This is the getter method for the instance variable reference.

Returns:
value of instance variable reference

setReference

public void setReference(java.lang.String _reference)
This is the setter method for the instance variable reference.

Parameters:
_reference - the reference to set

getCompareValue

public java.lang.Object getCompareValue()
This is the getter method for the instance variable compareValue .

Returns:
value of instance variable compareValue

getCellTitle

public java.lang.String getCellTitle()
This is the getter method for the instance variable cellTitle.

Returns:
value of instance variable cellTitle

getIcon

public java.lang.String getIcon()
This is the getter method for the instance variable icon.

Returns:
value of instance variable icon

isFixedWidth

public boolean isFixedWidth()
This is the getter method for the instance variable fixedWidth.

Returns:
value of instance variable fixedWidth

isCheckOut

public boolean isCheckOut()
This method returns if the field is a link which makes a checkout.

Returns:
true if it is a checkout

isMultiRows

public boolean isMultiRows()
Returns:
the multiRows

executeEvents

public java.util.List<org.efaps.admin.event.Return> executeEvents(java.lang.Object _others,
                                                                  org.efaps.admin.event.EventType _eventType)
                                                           throws org.efaps.util.EFapsException
Method to execute the events.

Parameters:
_others - object to be passed to the executed event.
_eventType - type of the event to be executed
Returns:
List of Returns
Throws:
org.efaps.util.EFapsException - on error

isAutoComplete

public boolean isAutoComplete()
Getter method for instance variable autoComplete.

Returns:
value of instance variable autoComplete

getAutoCompletion

public java.util.List<org.efaps.admin.event.Return> getAutoCompletion(java.lang.Object _others)
                                                               throws org.efaps.util.EFapsException
Method to get the auto completion event.

Parameters:
_others - object to be passed to the executed event
Returns:
List of Returns
Throws:
org.efaps.util.EFapsException - on error

isFieldUpdate

public boolean isFieldUpdate()
Getter method for instance variable fieldUpdate.

Returns:
value of instance variable fieldUpdate

getFieldUpdateEvent

public java.lang.String getFieldUpdateEvent()
Getter method for instance variable fieldUpdateEvent.

Returns:
value of instance variable fieldUpdateEvent

getFieldUpdate

public java.util.List<org.efaps.admin.event.Return> getFieldUpdate(java.lang.Object _others)
                                                            throws org.efaps.util.EFapsException
Method to get the field update event.

Parameters:
_others - object to be passed to the executed event
Returns:
List of Returns
Throws:
org.efaps.util.EFapsException - on error


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