|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.as400.ui.framework.java.AbstractDescriptor
public abstract class AbstractDescriptor extends Object
Describes a predefined value associated with a data attribute. An attribute's predefined values are often displayed as choices on a user interface panel, for example as a radio button group or a combo box.
| Constructor and Description |
|---|
AbstractDescriptor()
Constructs an AbstractDescriptor. |
AbstractDescriptor(String name,
String title)
Constructs an AbstractDescriptor with the specified
name and title. |
AbstractDescriptor(String name,
String title,
HandlerTask[] handlerTasks)
Constructs an AbstractDescriptor with the specified
name, title, and HandlerTask list. |
| Modifier and Type | Method and Description |
|---|---|
void |
addHandlerTask(HandlerTask task)
Adds a HandlerTask to the descriptor. |
String |
getName()
Returns the descriptor's name. |
String |
getTitle()
Returns the descriptor title. |
Object |
getUserObject()
Returns the user Object associated with this descriptor. |
void |
removeHandlerTask(HandlerTask task)
Removes a HandlerTask from the choice. |
void |
setName(String name)
Sets the descriptor name. |
void |
setTitle(String title)
Sets the descriptor title. |
void |
setUserObject(Object object)
Sets the user object. |
String |
toString()
Returns a string representation of the descriptor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractDescriptor()
AbstractDescriptor.
public AbstractDescriptor(String name,
String title)
AbstractDescriptor with the specified
name and title.
name - the name that is used to identify the choice programmatically.title - the title of the choice in a form suitable for displaying to the user.
public AbstractDescriptor(String name,
String title,
HandlerTask[] handlerTasks)
AbstractDescriptor with the specified
name, title, and HandlerTask list.
name - the name that is used to identify the choice programmaticallytitle - the title of the choice in a form suitable for displaying to the userhandlerTasks - a list of HandlerTasks which describe to
the UI framework actions which should be carried out when the choice is selectedHandlerTask| Method Detail |
|---|
public String getName()
setName(java.lang.String)public void setName(String name)
name - a string which is used to identify the descriptor programmaticallygetName()public String getTitle()
setTitle(java.lang.String)public void setTitle(String title)
title - the string which is used displayed to the usergetTitle()public void addHandlerTask(HandlerTask task)
HandlerTask to the descriptor.
A HandlerTask is an action that should be performed
by the UI framework when the choice is selected.
task - the task to be performedremoveHandlerTask(com.ibm.as400.ui.framework.java.HandlerTask),
HandlerTaskpublic void removeHandlerTask(HandlerTask task)
HandlerTask from the choice.
If the specified HandlerTask is not associated
with the descriptor, no action occurs.
task - the task to be removedaddHandlerTask(com.ibm.as400.ui.framework.java.HandlerTask),
HandlerTaskpublic Object getUserObject()
setUserObject(java.lang.Object)public void setUserObject(Object object)
the - user object to be associated with this descriptorgetUserObject()public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||