|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JList
|
+--planetj.gui.CMListJ
Common Swing JComboBox that provides I18N and business object support.
| Field Summary |
| Fields inherited from class javax.swing.JList |
HORIZONTAL_WRAP, VERTICAL, VERTICAL_WRAP |
| Fields inherited from class javax.swing.JComponent |
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
CMListJ()
Insert the method's description here. |
|
CMListJ(ListModel dataModel)
CMListJ constructor comment. |
|
CMListJ(Object[] listData)
CMListJ constructor comment. |
|
CMListJ(Vector listData)
CMListJ constructor comment. |
|
| Method Summary | |
void |
addBusinessObject(Object obj)
Adds a business object into the business object vector Creation date: (8/8/00 12:11:03 PM) |
List |
getBusinessObjects()
Returns a List of businessObjects |
String |
getGetterMethod()
Gets the getterMethod String. |
List |
getItems()
Gets the Items in a List of Strings that has been translated. |
List |
getOriginalStrings()
Return a List of Strings that are the pre-translated Strings displayed in this component. |
Object |
getSelectedBusinessObject()
Return a businessObject that is being selected from the ComboBox |
String |
getSelectedBusinessObjectAsString()
Return a businessObject that is being selected from the ComboBox as a String |
List |
getSelectedBusinessObjects()
Return a businessObject that is being selected from the ComboBox |
String |
getSelectedId()
Gets the selected translationId. |
String |
getSelectedOriginalString()
Return the original (pre - translation) string that is currently being selected. |
boolean |
isAutoReloadBusinessObjectsOnPropertyChangeEnabled()
isAutoReloadBusinessObjectsOnPropertyChangeEnabled method tells whether or not to reload the business objects in the list if a property change occurs from one of the business objects in the list. |
boolean |
isEmpty()
|
boolean |
isMoveDownEnabled()
This method will return false if the selected business object = the last element of the vector else it will return true |
boolean |
isMoveUpEnabled()
This method will return false if the selected business object = 0 else it will return true |
static void |
main(String[] args)
main entrypoint - starts the part when it is run as an application |
void |
propertyChange(PropertyChangeEvent evt)
propertyChange processes property changes for the items that this class is listening to. |
void |
refresh()
This method derives the strings from the getter methods via reflection and displays them in the list. |
void |
removeAllBusinessObjects()
Removes a business object from the business object vector Creation date: (8/8/00 12:11:03 PM) |
void |
removeBusinessObject(Object obj)
Removes a business object from the business object collection Creation date: (8/8/00 12:11:03 PM) |
void |
setAutoReloadBusinessObjectsOnPropertyChangeEnabled(boolean value)
setAutoReloadBusinessObjectsOnPropertyChangeEnabled method sets whether or not to reload the business objects in the list if a property change occurs from one of the business objects in the list. |
void |
setBusinessObjects(List businessObjects)
Set a Collection of business objects into the component. |
void |
setGetterMethod(String getterMethod)
Set a methodName to be used to query a business objects for a String that will be used as the items within a JComboBox. |
void |
setListData(List newItems)
Translate the Vector of Strings and then set the translated Strings in the component. |
void |
setListDataDirectly(List stringList)
Add a Vector of Strings to the ComboBox directly. |
void |
setPropertyChangeListeners(IPropertyChangeSource propertyChangeObject,
boolean addListeners)
This method was added during performance enhancements. |
void |
setRetainSelectedIndices(boolean value)
setRetainSelectedIndices sets whether or not retain selected indices is needed. |
void |
setSelectedBusinessObject(Object selectedBusinessObject)
Sets item selected in the comboBox to the businessObject passed in |
void |
setSelectedBusinessObjects(List selBusinessObjects)
Sets item selected in the comboBox to the businessObject passed in |
void |
setSelectedId(String translationId)
Sets the selected translationId. |
void |
setSelectedOriginalString(String originalString)
Set the comboBox's selected index to the position occupied by the originalString |
void |
valueChanged(ListSelectionEvent e)
Method to handle events for the ListSelectionListener interface. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CMListJ()
public CMListJ(Object[] listData)
listData - java.lang.Object[]public CMListJ(Vector listData)
listData - java.util.Vectorpublic CMListJ(ListModel dataModel)
dataModel - javax.swing.ListModel| Method Detail |
public void addBusinessObject(Object obj)
obj - java.lang.Objectpublic List getBusinessObjects()
public String getGetterMethod()
setGetterMethod(java.lang.String)public List getItems()
public List getOriginalStrings()
public Object getSelectedBusinessObject()
public String getSelectedBusinessObjectAsString()
public List getSelectedBusinessObjects()
public String getSelectedId()
public String getSelectedOriginalString()
public boolean isAutoReloadBusinessObjectsOnPropertyChangeEnabled()
public boolean isEmpty()
public boolean isMoveDownEnabled()
public boolean isMoveUpEnabled()
public static void main(String[] args)
args - java.lang.String[]public void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerevt - java.beans.propertyChangeEventpublic void refresh()
public void removeAllBusinessObjects()
public void removeBusinessObject(Object obj)
obj - java.lang.Objectpublic void setAutoReloadBusinessObjectsOnPropertyChangeEnabled(boolean value)
value - booleanpublic final void setBusinessObjects(List businessObjects)
public void setGetterMethod(String getterMethod)
public void setListData(List newItems)
public void setListDataDirectly(List stringList)
public void setPropertyChangeListeners(IPropertyChangeSource propertyChangeObject,
boolean addListeners)
propertyChangeObject - IPropertyChangeSource object to add or remove listener(s) fromaddListeners - boolean flag to indicate whether to add (true) or remove (false) listener(s) from object
%WK 2-14-2001public void setRetainSelectedIndices(boolean value)
value - booleanpublic void setSelectedBusinessObject(Object selectedBusinessObject)
public void setSelectedBusinessObjects(List selBusinessObjects)
public void setSelectedId(String translationId)
translationId - the String that identifies the translation to be selected within the Choice.public void setSelectedOriginalString(String originalString)
public void valueChanged(ListSelectionEvent e)
valueChanged in interface ListSelectionListenere - javax.swing.event.ListSelectionEvent
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||