org.efaps.ui.wicket.models.objects
Class UIClassification

java.lang.Object
  extended by org.efaps.ui.wicket.models.objects.UIClassification
All Implemented Interfaces:
java.io.Serializable, org.apache.wicket.IClusterable, IFormElement

public class UIClassification
extends java.lang.Object
implements IFormElement, org.apache.wicket.IClusterable

Class is used as a model for a classification.

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

Constructor Summary
UIClassification(org.efaps.admin.ui.field.FieldClassification _field, AbstractUIObject _uiObject)
           
 
Method Summary
 void addSelectedUUID(java.util.UUID _uuid)
          Method to add a uuid to the set of selected classifications.
 void execute()
          Execute the model.
 java.util.List<UIClassification> getChildren()
          Getter method for instance variable children.
 java.util.UUID getClassificationUUID()
          Getter method for instance variable classificationUUID.
 java.util.Map<java.util.UUID,java.lang.String> getClassInstanceKeys(org.efaps.db.Instance _instance)
          Method to get the key to the instances related to this classification.
 java.lang.String getCommandName()
          Getter method for instance variable commandName.
 long getFieldId()
          Getter method for instance variable fieldId.
 java.lang.String getLabel()
          Getter method for instance variable label.
 org.efaps.admin.ui.AbstractUserInterfaceObject.TargetMode getMode()
          Getter method for instance variable mode.
 UIClassification getParent()
          Getter method for instance variable parent.
 javax.swing.tree.TreeModel getTreeModel()
          Method to get the tree for the classification.
 boolean isInitialized()
          Getter method for instance variable initialized.
 boolean isRoot()
          Getter method for instance variable root.
 boolean isSelected()
          Getter method for instance variable selected.
 void setSelected(boolean _selected)
          Setter method for instance variable selected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIClassification

public UIClassification(org.efaps.admin.ui.field.FieldClassification _field,
                        AbstractUIObject _uiObject)
Parameters:
_field - FielClassification
_uiObject - ui object
Method Detail

getFieldId

public long getFieldId()
Getter method for instance variable fieldId.

Returns:
value of instance variable fieldId

getTreeModel

public javax.swing.tree.TreeModel getTreeModel()
Method to get the tree for the classification.

Returns:
a TreeModel containing the classification hirachy

isSelected

public boolean isSelected()
Getter method for instance variable selected.

Returns:
value of instance variable selected

setSelected

public void setSelected(boolean _selected)
Setter method for instance variable selected.

Parameters:
_selected - value for instance variable selected

getLabel

public java.lang.String getLabel()
Getter method for instance variable label.

Returns:
value of instance variable label

execute

public void execute()
Execute the model.


getClassInstanceKeys

public java.util.Map<java.util.UUID,java.lang.String> getClassInstanceKeys(org.efaps.db.Instance _instance)
                                                                    throws org.efaps.util.EFapsException
Method to get the key to the instances related to this classification.

Parameters:
_instance - Instance the related instance key are searched for
Returns:
Map of instance keys
Throws:
org.efaps.util.EFapsException - on error

isInitialized

public boolean isInitialized()
Getter method for instance variable initialized.

Returns:
value of instance variable initialized

getClassificationUUID

public java.util.UUID getClassificationUUID()
Getter method for instance variable classificationUUID.

Returns:
value of instance variable classificationUUID

getChildren

public java.util.List<UIClassification> getChildren()
Getter method for instance variable children.

Returns:
value of instance variable children

getParent

public UIClassification getParent()
Getter method for instance variable parent.

Returns:
value of instance variable parent

isRoot

public boolean isRoot()
Getter method for instance variable root.

Returns:
value of instance variable root

getMode

public org.efaps.admin.ui.AbstractUserInterfaceObject.TargetMode getMode()
Getter method for instance variable mode.

Returns:
value of instance variable mode

getCommandName

public java.lang.String getCommandName()
Getter method for instance variable commandName.

Returns:
value of instance variable commandName

addSelectedUUID

public void addSelectedUUID(java.util.UUID _uuid)
Method to add a uuid to the set of selected classifications. This method should only be called on a root classification. e.;g. on cretae mode to set the default selected classifications.

Parameters:
_uuid - uuid to set as selected


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