|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
org.openswing.swing.mdi.java.ApplicationFunction
Title: OpenSwing Framework
Description: the tree/menubar item (of the MDI Frame). The server side must return a DefaultTreeModel that MUST contains ApplicationFunction objects.
Copyright: Copyright (C) 2006 Mauro Carniel
This file is part of OpenSwing Framework. This library is free software; you can redistribute it and/or modify it under the terms of the (LGPL) Lesser General Public License as published by the Free Software Foundation; GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. The author may be contacted at: maurocarniel@tin.it
Field Summary |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
EMPTY_ENUMERATION |
Constructor Summary | |
ApplicationFunction()
Root node. |
|
ApplicationFunction(boolean isSeparator)
Root node or separator. |
|
ApplicationFunction(java.lang.String nodeName,
java.lang.String iconName)
Constructor: a folder |
|
ApplicationFunction(java.lang.String nodeName,
java.lang.String iconName,
java.lang.String tooltipText)
Constructor: a folder |
|
ApplicationFunction(java.lang.String nodeName,
java.lang.String functionId,
java.lang.String iconName,
java.lang.String methodName)
Constructor: a node function |
|
ApplicationFunction(java.lang.String nodeName,
java.lang.String functionId,
java.lang.String iconName,
java.lang.String methodName,
java.lang.String tooltipText)
Constructor: a node function |
Method Summary | |
javax.swing.KeyStroke |
getAccelerator()
|
java.lang.String |
getDescription()
|
java.lang.String |
getFunctionId()
|
java.lang.String |
getIconName()
|
java.lang.String |
getMethodName()
|
java.lang.Character |
getShortCut()
|
java.lang.String |
getTooltipText()
|
boolean |
isFolder()
|
boolean |
isSeparator()
|
void |
setAccelerator(javax.swing.KeyStroke accelerator)
Set the accelerator to use in order to select this function in the menu bar. |
void |
setDescription(java.lang.String description)
Set node description. |
void |
setShortCut(java.lang.Character shortCut)
Set the shortcut to use in order to select this function in the menu bar; if not setted, the shortcut is automatically defined by MDIFrame. |
java.lang.String |
toString()
|
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ApplicationFunction()
public ApplicationFunction(boolean isSeparator)
isSeparator
- true
to set a separator, false
to define a root nodepublic ApplicationFunction(java.lang.String nodeName, java.lang.String iconName)
nodeName
- description (already translated) to view in the tree node/menu itemiconName
- image namepublic ApplicationFunction(java.lang.String nodeName, java.lang.String iconName, java.lang.String tooltipText)
nodeName
- description (already translated) to view in the tree node/menu itemiconName
- image nametooltipText
- tooltip text (already translated) to view in the tree node/menu itempublic ApplicationFunction(java.lang.String nodeName, java.lang.String functionId, java.lang.String iconName, java.lang.String methodName)
nodeName
- description (already translated) to view in the tree node/menu itemfunctionId
- function identifiericonName
- image namemethodName
- method name in ClientFacade to executepublic ApplicationFunction(java.lang.String nodeName, java.lang.String functionId, java.lang.String iconName, java.lang.String methodName, java.lang.String tooltipText)
nodeName
- description (already translated) to view in the tree node/menu itemfunctionId
- function identifiericonName
- image namemethodName
- method name in ClientFacade to executeMethod Detail |
public final java.lang.String getFunctionId()
public final java.lang.String getIconName()
public final java.lang.String getMethodName()
public final boolean isFolder()
public final java.lang.String getDescription()
public final void setDescription(java.lang.String description)
public java.lang.String toString()
public final boolean isSeparator()
public final java.lang.String getTooltipText()
public java.lang.Character getShortCut()
public final void setShortCut(java.lang.Character shortCut)
shortCut
- shortcut to use in order to select this function in the menu barpublic final javax.swing.KeyStroke getAccelerator()
public final void setAccelerator(javax.swing.KeyStroke accelerator)
KeyStroke.getKeyStroke('X',Event.CTRL_MASK)
accelerator
- accelerator to use in order to select this function in the menu bar
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |