|
|||||||||
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 | +--com.ibm.as400.ui.framework.java.ItemDescriptor
Describes an item in a list.
ItemDescriptor
s represent objects on a
user interface panel, as displayed in a list or table.
Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NORTH, NORTH_EAST, NORTH_WEST, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Constructor Summary | |
ItemDescriptor()
Constructs an ItemDescriptor . |
|
ItemDescriptor(java.lang.String name,
java.lang.String title)
Constructs an ItemDescriptor with the specified
name and title. |
|
ItemDescriptor(java.lang.String name,
java.lang.String title,
HandlerTask[] handlerTasks)
Constructs an ItemDescriptor with the specified
name, title, and HandlerTask list. |
|
ItemDescriptor(java.lang.String name,
java.lang.String title,
java.lang.String imageFile)
Constructs an ItemDescriptor with the specified
name, title and image file. |
|
ItemDescriptor(java.lang.String name,
java.lang.String title,
java.lang.String imageFile,
int iconPosition,
int vIconPosition)
Constructs an ItemDescriptor with the specified
name, title, image file, and icon alignment. |
Method Summary | |
int |
getHorizontalIconPosition()
Returns the item's horizontal icon position. |
java.lang.String |
getImageFile()
Returns the item's image file name. |
int |
getVerticalIconPosition()
Returns the item's vertical icon position. |
void |
setHorizontalIconPosition(int horizontalIconPosition)
Sets the item's horizontal icon position. |
void |
setImageFile(java.lang.String imageFile)
Sets the item's image file name. |
void |
setVerticalIconPosition(int verticalIconPosition)
Sets the item's vertical icon position. |
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 ItemDescriptor()
ItemDescriptor
.public ItemDescriptor(java.lang.String name, java.lang.String title)
ItemDescriptor
with the specified
name and title.name
- the name that is used to identify the item programmaticallytitle
- the title of the item in a form suitable for displaying to the userpublic ItemDescriptor(java.lang.String name, java.lang.String title, java.lang.String imageFile)
ItemDescriptor
with the specified
name, title and image file.
Default icon position of LEFT and vertical icon position of CENTER will be used.name
- the name that is used to identify the item programmaticallytitle
- the title of the item in a form suitable for displaying to the userimageFile
- the name of the file containing the image to be displayed with this itempublic ItemDescriptor(java.lang.String name, java.lang.String title, java.lang.String imageFile, int iconPosition, int vIconPosition)
ItemDescriptor
with the specified
name, title, image file, and icon alignment.name
- the name that is used to identify the item programmaticallytitle
- the title of the item in a form suitable for displaying to the userimageFile
- the name of the file containing the image to be displayed with this itemiconPosition
- the position of the item's icon in relation to the item textvIconPosition
- the vertical position of the item's iconpublic ItemDescriptor(java.lang.String name, java.lang.String title, HandlerTask[] handlerTasks)
ItemDescriptor
with the specified
name, title, and HandlerTask
list.name
- the name that is used to identify the item programmaticallytitle
- the title of the item 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 item is selectedHandlerTask
Method Detail |
public java.lang.String getImageFile()
setImageFile(java.lang.String)
public void setImageFile(java.lang.String imageFile)
imageFile
- the name of the image resource that will be used to
create the icon for the itemgetImageFile()
public int getHorizontalIconPosition()
setHorizontalIconPosition(int)
public void setHorizontalIconPosition(int horizontalIconPosition)
horizontalIconPosition
- the horizontal position of the icon for the itemgetHorizontalIconPosition()
public int getVerticalIconPosition()
setVerticalIconPosition(int)
public void setVerticalIconPosition(int verticalIconPosition)
verticalIconPosition
- the vertical position of the icon for the itemgetVerticalIconPosition()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |