|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.efaps.ui.wicket.models.AbstractInstanceObject
org.efaps.ui.wicket.models.objects.AbstractUIObject
org.efaps.ui.wicket.models.objects.UIMenuItem
public class UIMenuItem
This class provides the Model for rendering MenuComponents in #org.efaps.ui.wicket.components.menu.MenuPanel
and in #org.efaps.ui.wicket.components.menutree.MenuTree.
| Constructor Summary | |
|---|---|
UIMenuItem(java.util.UUID _uuid)
Constructor setting the UUID of this MenuItem. |
|
UIMenuItem(java.util.UUID _uuid,
java.lang.String _instanceKey)
Constructor setting the UUID and the key for the instance of this MenuItem. |
|
| Method Summary | |
|---|---|
void |
execute()
Method is used to execute the UIObject (Fill it with data). |
javax.swing.tree.DefaultMutableTreeNode |
getAncestor()
This is the getter method for the instance variable ancestor. |
java.util.List<UIMenuItem> |
getChilds()
This is the getter method for the instance variable childs. |
java.lang.String |
getDescription()
This is the getter method for the instance variable description. |
java.lang.String |
getImage()
This is the getter method for the instance variable image. |
java.lang.String |
getLabel()
This is the getter method for the instance variable label. |
javax.swing.tree.DefaultMutableTreeNode |
getNode()
get a Node of this MenuItemModel including the Childs. |
java.lang.String |
getReference()
This is the getter method for the instance variable reference. |
int |
getSubmitSelectedRows()
Getter method for the instance variable submitSelectedRows. |
javax.swing.tree.TreeModel |
getTreeModel()
get a TreeModel which used in the Components to construct the actuall tree. |
java.lang.String |
getTypeImage()
This method returns the URL to the Image of this MenuItem. |
java.lang.String |
getUrl()
This is the getter method for the instance variable url. |
int |
getWindowHeight()
This is the getter method for the instance variable windowHeight
. |
int |
getWindowWidth()
This is the getter method for the instance variable windowWidth. |
boolean |
hasChilds()
this method returns, if this MenuItem has childs. |
boolean |
isAskUser()
This is the getter method for the instance variable askUser. |
boolean |
isDefaultSelected()
This is the getter method for the instance variable defaultSelected. |
boolean |
isHeader()
This is the getter method for the instance variable header. |
boolean |
isStepInto()
This is the getter method for the instance variable stepInto. |
void |
requeryLabel()
|
void |
resetModel()
This Method resets the Model, so that the next time the Model is going to be connected, the underlying Data will be received newly from the eFapsDataBase. |
void |
setAncestor(javax.swing.tree.DefaultMutableTreeNode _node)
This is the setter method for the instance variable ancestor. |
void |
setHeader(boolean _header)
This is the setter method for the instance variable header. |
void |
setStepInto(boolean _stepInto)
This is the setter method for the instance variable stepInto. |
void |
setURL(java.lang.String _url)
This is the setter method for the instance variable url. |
| Methods inherited from class org.efaps.ui.wicket.models.objects.AbstractUIObject |
|---|
executeEvents, getCallingCommand, getCallingCommandUUID, getCommand, getCommand, getCommandUUID, getInstanceFromManager, getMenuTreeKey, getMode, getOpenerId, getTarget, getTitle, hasInstanceManager, isCreateMode, isEditMode, isInitialized, isPrintMode, isSearchMode, isSubmit, isViewMode, setCallingCommandUUID, setCommandUUID, setInitialized, setMode, setOpenerId, setSubmit, validate |
| 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 |
|---|
public UIMenuItem(java.util.UUID _uuid)
_uuid - UUID
public UIMenuItem(java.util.UUID _uuid,
java.lang.String _instanceKey)
_uuid - UUID_instanceKey - instance Key| Method Detail |
|---|
public boolean hasChilds()
childs,
getChilds()public java.util.List<UIMenuItem> getChilds()
childs.
childspublic java.lang.String getDescription()
description.
descriptionpublic java.lang.String getImage()
image.
imagepublic java.lang.String getLabel()
label.
labelpublic java.lang.String getReference()
reference.
referencepublic int getSubmitSelectedRows()
submitSelectedRows.
submitSelectedRowspublic java.lang.String getTypeImage()
org.efaps.util.EFapsExceptionpublic java.lang.String getUrl()
url.
urlpublic void setURL(java.lang.String _url)
url.
_url - the url to setpublic int getWindowHeight()
windowHeight
.
windowHeightpublic int getWindowWidth()
windowWidth.
windowWidthpublic void requeryLabel()
public boolean isAskUser()
askUser.
askUserpublic boolean isDefaultSelected()
defaultSelected.
defaultSelectedpublic boolean isHeader()
header.
headerpublic void setHeader(boolean _header)
header.
_header - the header to setpublic boolean isStepInto()
stepInto.
stepIntopublic void setStepInto(boolean _stepInto)
stepInto.
_stepInto - the stepInto to setpublic void resetModel()
resetModel in class AbstractUIObjectpublic javax.swing.tree.TreeModel getTreeModel()
getNode()public javax.swing.tree.DefaultMutableTreeNode getNode()
addNode(DefaultMutableTreeNode, List)public javax.swing.tree.DefaultMutableTreeNode getAncestor()
ancestor.
ancestorpublic void setAncestor(javax.swing.tree.DefaultMutableTreeNode _node)
ancestor.
_node - the ancestor to setpublic void execute()
AbstractUIObject
execute in class AbstractUIObjectAbstractUIObject.execute()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||