|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.as400.ui.framework.java.AbstractDescriptor
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 Summary | |
AbstractDescriptor()
Constructs an AbstractDescriptor . |
|
AbstractDescriptor(java.lang.String name,
java.lang.String title)
Constructs an AbstractDescriptor with the specified
name and title. |
|
AbstractDescriptor(java.lang.String name,
java.lang.String title,
HandlerTask[] handlerTasks)
Constructs an AbstractDescriptor with the specified
name, title, and HandlerTask list. |
Method Summary | |
void |
addHandlerTask(HandlerTask task)
Adds a HandlerTask to the descriptor. |
java.lang.String |
getName()
Returns the descriptor's name. |
java.lang.String |
getTitle()
Returns the descriptor title. |
java.lang.Object |
getUserObject()
Returns the user Object associated with this descriptor. |
void |
removeHandlerTask(HandlerTask task)
Removes a HandlerTask from the choice. |
void |
setName(java.lang.String name)
Sets the descriptor name. |
void |
setTitle(java.lang.String title)
Sets the descriptor title. |
void |
setUserObject(java.lang.Object object)
Sets the user object. |
java.lang.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(java.lang.String name, java.lang.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(java.lang.String name, java.lang.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 HandlerTask
s which describe to
the UI framework actions which should be carried out when the choice is selectedHandlerTask
Method Detail |
public java.lang.String getName()
setName(java.lang.String)
public void setName(java.lang.String name)
name
- a string which is used to identify the descriptor programmaticallygetName()
public java.lang.String getTitle()
setTitle(java.lang.String)
public void setTitle(java.lang.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)
,
HandlerTask
public 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)
,
HandlerTask
public java.lang.Object getUserObject()
setUserObject(java.lang.Object)
public void setUserObject(java.lang.Object object)
the
- user object to be associated with this descriptorgetUserObject()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |