|
|||||||||
| 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
com.ibm.as400.ui.framework.java.ItemDescriptor
public class ItemDescriptor extends AbstractDescriptor implements SwingConstants
Describes an item in a list.
ItemDescriptors represent objects on a
user interface panel, as displayed in a list or table.
| Modifier and Type | Field and Description |
|---|
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Constructor and Description |
|---|
ItemDescriptor()
Constructs an ItemDescriptor. |
ItemDescriptor(String name,
String title)
Constructs an ItemDescriptor with the specified
name and title. |
ItemDescriptor(String name,
String title,
HandlerTask[] handlerTasks)
Constructs an ItemDescriptor with the specified
name, title, and HandlerTask list. |
ItemDescriptor(String name,
String title,
String imageFile)
Constructs an ItemDescriptor with the specified
name, title and image file. |
ItemDescriptor(String name,
String title,
String imageFile,
int iconPosition,
int vIconPosition)
Constructs an ItemDescriptor with the specified
name, title, image file, and icon alignment. |
| Modifier and Type | Method and Description |
|---|---|
int |
getHorizontalIconPosition()
Returns the item's horizontal icon position. |
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(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(String name,
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 user
public ItemDescriptor(String name,
String title,
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 item
public ItemDescriptor(String name,
String title,
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 icon
public ItemDescriptor(String name,
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 HandlerTasks which describe to
the UI framework actions which should be carried out when the item is selectedHandlerTask| Method Detail |
|---|
public String getImageFile()
setImageFile(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 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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||