|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.as400.ui.framework.java.AbstractDescriptor com.ibm.as400.ui.framework.java.NodeDescriptor
public class NodeDescriptor extends AbstractDescriptor
Describes an item in a tree.
NodeDescriptor
s represent objects on a
user interface panel as displayed in a tree view.
Constructor and Description |
---|
NodeDescriptor()
Constructs a NodeDescriptor . |
NodeDescriptor(String name,
String title,
String imageFile)
Constructs a NodeDescriptor with the specified
name, title, and image file. |
NodeDescriptor(String name,
String title,
String imageFile,
boolean isLeaf)
Constructs a NodeDescriptor with the specified
name and title, and image file. |
NodeDescriptor(String name,
String title,
String imageFile,
HandlerTask[] handlerTasks)
Constructs a NodeDescriptor with the specified
name, title, image file and HandlerTask list. |
NodeDescriptor(String name,
String title,
String imageFile,
String expandedImageFile)
Constructs a NodeDescriptor with the specified
name and title, image file, and selected image file. |
NodeDescriptor(String name,
String title,
String imageFile,
String expandedImageFile,
boolean isLeaf)
Constructs a NodeDescriptor with the specified
name and title, and image file. |
NodeDescriptor(String name,
String title,
String imageFile,
String expandedImageFile,
HandlerTask[] handlerTasks)
Constructs a NodeDescriptor with the specified
name, title, image file, selected image file, and HandlerTask list. |
Modifier and Type | Method and Description |
---|---|
String |
getExpandedImageFile()
Returns the expanded node image file name. |
String |
getImageFile()
Returns this node's image file name. |
boolean |
isExpandRequested()
Determines whether this node is to be initially expanded. |
boolean |
isLeaf()
Determines whether this node is a leaf. |
void |
setExpandedImageFile(String expandedImageFile)
Sets the expanded node image file name. |
void |
setExpandRequested(boolean isExpandRequested)
Indicates whether this node is to be initially expanded, depending on the value of parameter isExpandRequested . |
void |
setImageFile(String imageFile)
Sets the node image file name. |
void |
setLeaf(boolean isLeaf)
Indicates whether this node is a leaf, depending on the value of parameter isLeaf . |
Methods inherited from class com.ibm.as400.ui.framework.java.AbstractDescriptor |
---|
addHandlerTask, getName, getTitle, getUserObject, removeHandlerTask, setName, setTitle, setUserObject, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NodeDescriptor()
NodeDescriptor
.
public NodeDescriptor(String name, String title, String imageFile)
NodeDescriptor
with the specified
name, title, and image file.
name
- the name that is used to identify the node programmaticallytitle
- the title of the node in a form suitable for displaying to the userimageFile
- the name of the image resource that will be used to
create the icon for the nodepublic NodeDescriptor(String name, String title, String imageFile, String expandedImageFile)
NodeDescriptor
with the specified
name and title, image file, and selected image file.
name
- the name that is used to identify the node programmaticallytitle
- the title of the node in a form suitable for displaying to the userimageFile
- the name of the image resource that will be used to
create the icon for the nodeexpandedImageFile
- the name of the image resource to be displayed when a node
is expandedpublic NodeDescriptor(String name, String title, String imageFile, boolean isLeaf)
NodeDescriptor
with the specified
name and title, and image file.
This constructor provides an additional parameter for indicating whether
this node is a leaf.
name
- the name that is used to identify the node programmaticallytitle
- the title of the node in a form suitable for displaying to the userimageFile
- the name of the image resource that will be used to
create the icon for the nodeisLeaf
- indicates node is a leaf if truepublic NodeDescriptor(String name, String title, String imageFile, String expandedImageFile, boolean isLeaf)
NodeDescriptor
with the specified
name and title, and image file.
This constructor provides an additional parameter for indicating whether
this node is a leaf.
name
- the name that is used to identify the node programmaticallytitle
- the title of the node in a form suitable for displaying to the userimageFile
- the name of the image resource that will be used to
create the icon for the nodeexpandedImageFile
- the name of the image resource to be displayed when a node
is expandedisLeaf
- indicates node is a leaf if truepublic NodeDescriptor(String name, String title, String imageFile, HandlerTask[] handlerTasks)
NodeDescriptor
with the specified
name, title, image file and HandlerTask
list.
name
- the name that is used to identify the node programmaticallytitle
- the title of the node in a form suitable for displaying to the userimageFile
- the name of the image resource that will be used to
create the icon for the nodehandlerTasks
- a list of HandlerTask
s which describe to
the UI framework actions which should be carried out when the node is selectedpublic NodeDescriptor(String name, String title, String imageFile, String expandedImageFile, HandlerTask[] handlerTasks)
NodeDescriptor
with the specified
name, title, image file, selected image file, and HandlerTask
list.
name
- the name that is used to identify the node programmaticallytitle
- the title of the node in a form suitable for displaying to the userimageFile
- the name of the image resource that will be used to
create the icon for the nodeexpandedImageFile
- the name of the image resource to be displayed when a node
is expandedhandlerTasks
- a list of HandlerTask
s which describe to
the UI framework actions which should be carried out when the node is selectedMethod Detail |
---|
public String getImageFile()
setImageFile(java.lang.String)
public String getExpandedImageFile()
setExpandedImageFile(java.lang.String)
public void setImageFile(String imageFile)
imageFile
- the name of the image resource that will be used to
create the icon for the nodegetImageFile()
public void setExpandedImageFile(String expandedImageFile)
expandedImageFile
- the name of the image resource that will be used to
create the icon for the nodegetImageFile()
public void setLeaf(boolean isLeaf)
isLeaf
.
isLeaf
- If true, node will be displayed as a leaf; otherwise, node will displayed
as a container.isLeaf()
public boolean isLeaf()
setLeaf(boolean)
public boolean isExpandRequested()
setExpandRequested(boolean)
public void setExpandRequested(boolean isExpandRequested)
isExpandRequested
.
isExpandRequested
- If true, node will be initially displayed expanded; otherwise, it will be collapsedisExpandRequested()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |