|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The interface for views designed to permit the selection of an object
using an associated string in a StringObjectMap.
| Field Summary | |
static String |
VIEW_STATE
Bound property name for the view state. |
| Fields inherited from interface edu.neu.ccs.util.JPTConstants |
ABOVE, ALIGNMENT, BELOW, BOTTOM_LEFT, BOTTOM_RIGHT, DEFAULT, FONT, INPUT_PROPERTIES, MANDATORY, OPTIONAL, ORIENTATION, TOP_LEFT, TOP_RIGHT, VALUE |
| 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 |
| Method Summary | |
void |
addActionListener(ActionListener listener)
Adds an ActionListener. |
Object |
getSelectedObject()
Returns the object corresponding to the currently selected string in the view. |
String |
getSelectedString()
Returns the currently selected string in the view. |
void |
removeActionListener(ActionListener listener)
Removes an ActionListener. |
void |
setSelectedObject(Object object)
Sets the view to the string corresponding to the given object. |
void |
setSelectedString(String string)
Sets the view to the string provided that the string is in the internal map. |
| Field Detail |
public static final String VIEW_STATE
| Method Detail |
public String getSelectedString()
getSelectedObject()public Object getSelectedObject()
getSelectedString()public void setSelectedString(String string)
Sets the view to the string provided that the string is in the internal map.
Does nothing if the string is null
or is not in the internal map.
Does nothing if the view state will be unchanged.
string - the string to use to set the viewsetSelectedObject(Object)public void setSelectedObject(Object object)
Sets the view to the string corresponding to the given object.
Does nothing if the object is null
or is not in the internal map.
object - the object to use to set the viewsetSelectedString(String)public void addActionListener(ActionListener listener)
ActionListener.
listener - the ActionListener that is to be notifiedremoveActionListener(ActionListener)public void removeActionListener(ActionListener listener)
ActionListener.
listener - the ActionListener to removeaddActionListener(ActionListener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||