|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JComboBox
edu.neu.ccs.gui.Dropdown
edu.neu.ccs.gui.StringObjectDropdown
A view based on JComboBox for the selection of an object
using an associated string in a StringObjectMap.
It is invalid to modify the items in this view after construction by using methods of the base class. This view should not be made editable.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JComboBox |
JComboBox.AccessibleJComboBox, JComboBox.KeySelectionManager |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
protected StringObjectMap |
pairmap
The internal two way map. |
protected boolean |
sort
Whether or not to sort. |
| Fields inherited from class edu.neu.ccs.gui.Dropdown |
DEFAULT_SELECTION, DEFAULT_WIDTH, defaultViewState, itemList, minimumWidth, PREFERRED_WIDTH, preferredWidth |
| Fields inherited from class javax.swing.JComboBox |
actionCommand, dataModel, editor, isEditable, keySelectionManager, lightWeightPopupEnabled, maximumRowCount, renderer, selectedItemReminder |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Container |
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface edu.neu.ccs.gui.StringObjectView |
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 |
| Fields inherited from interface edu.neu.ccs.gui.Displayable |
DEFAULT_VIEW_STATE, VIEW_STATE |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
StringObjectDropdown()
The default constructor. |
|
StringObjectDropdown(Object[][] pairs)
The constructor that uses a pairs array to construct the internal two way map. |
|
StringObjectDropdown(Object[][] pairs,
Action action)
The constructor that uses a pairs array to construct the internal two way map; and provides the action to perform when an option is selected. |
|
StringObjectDropdown(Object[][] pairs,
Action action,
boolean sort)
The constructor that uses a pairs array to construct the internal two way map; provides the action to perform when an option is selected; and allows the choice of whether or not to sort the strings. |
|
StringObjectDropdown(Object[][] pairs,
Action action,
Font font)
The constructor that uses a pairs array to construct the internal two way map; provides the action to perform when an option is selected; and provides the font. |
|
StringObjectDropdown(Object[][] pairs,
Action action,
Font font,
boolean sort)
The constructor that uses a pairs array to construct the internal two way map; provides the action to perform when an option is selected; provides the font; and allows the choice of whether or not to sort the strings. |
|
StringObjectDropdown(Object[][] pairs,
Action action,
Font font,
int minWidth)
The constructor that uses a pairs array to construct the internal two way map; provides the action to perform when an option is selected; provides the font; and provides the minimum width for the drop down list. |
|
StringObjectDropdown(Object[][] pairs,
Action action,
Font font,
int minWidth,
boolean sort)
The constructor that uses a pairs array to construct the internal two way map; provides the action to perform when an option is selected; provides the font; provides the minimum width for the drop down list; and allows the choice of whether or not to sort the strings. |
|
StringObjectDropdown(Object[][] pairs,
Action action,
int minWidth)
The constructor that uses a pairs array to construct the internal two way map; provides the action to perform when an option is selected; and provides the minimum width for the drop down list. |
|
StringObjectDropdown(Object[][] pairs,
Action action,
int minWidth,
boolean sort)
The constructor that uses a pairs array to construct the internal two way map; provides the action to perform when an option is selected; provides the minimum width for the drop down list; and allows the choice of whether or not to sort the strings. |
|
StringObjectDropdown(StringObjectMap map)
The constructor that copies the given string-object map to construct the internal string-object map. |
|
StringObjectDropdown(StringObjectMap map,
Action action)
The constructor that copies the given string-object map to construct the internal string-object map; and provides the action to perform when an option is selected. |
|
StringObjectDropdown(StringObjectMap map,
Action action,
boolean sort)
The constructor that copies the given string-object map to construct the internal string-object map; provides the action to perform when an option is selected; and allows the choice of whether or not to sort the strings. |
|
StringObjectDropdown(StringObjectMap map,
Action action,
Font font)
The constructor that copies the given string-object map to construct the internal string-object map; provides the action to perform when an option is selected and provides the font. |
|
StringObjectDropdown(StringObjectMap map,
Action action,
Font font,
boolean sort)
The constructor that copies the given string-object map to construct the internal string-object map; provides the action to perform when an option is selected; provides the font; and allows the choice of whether or not to sort the strings. |
|
StringObjectDropdown(StringObjectMap map,
Action action,
Font font,
int minWidth)
The constructor that copies the given string-object map to construct the internal string-object map; provides the action to perform when an option is selected; provides the font; and provides the minimum width for the drop down list. |
|
StringObjectDropdown(StringObjectMap map,
Action action,
Font font,
int minWidth,
boolean sort)
The constructor that copies the given string-object map to construct the internal string-object map; provides the action to perform when an option is selected; provides the font; provides the minimum width for the drop down list; and allows the choice of whether or not to sort the strings. |
|
StringObjectDropdown(StringObjectMap map,
Action action,
int minWidth)
The constructor that copies the given string-object map to construct the internal string-object map; provides the action to perform when an option is selected; and provides the minimum width for the drop down list. |
|
StringObjectDropdown(StringObjectMap map,
Action action,
int minWidth,
boolean sort)
The constructor that copies the given string-object map to construct the internal string-object map; provides the action to perform when an option is selected; provides the minimum width for the drop down list; and allows the choice of whether or not to sort the strings. |
|
StringObjectDropdown(StringObjectPair[] pairs)
The constructor that uses a pairs array to construct the internal two way map. |
|
StringObjectDropdown(StringObjectPair[] pairs,
Action action)
The constructor that uses a pairs array to construct the internal two way map; and provides the action to perform when an option is selected. |
|
StringObjectDropdown(StringObjectPair[] pairs,
Action action,
boolean sort)
The constructor that uses a pairs array to construct the internal two way map; provides the action to perform when an option is selected; and allows the choice of whether or not to sort the strings. |
|
StringObjectDropdown(StringObjectPair[] pairs,
Action action,
Font font)
The constructor that uses a pairs array to construct the internal two way map; provides the action to perform when an option is selected; and provides the font. |
|
StringObjectDropdown(StringObjectPair[] pairs,
Action action,
Font font,
boolean sort)
The constructor that uses a pairs array to construct the internal two way map; provides the action to perform when an option is selected; provides the font; and allows the choice of whether or not to sort the strings. |
|
StringObjectDropdown(StringObjectPair[] pairs,
Action action,
Font font,
int minWidth)
The constructor that uses a pairs array to construct the internal two way map; provides the action to perform when an option is selected; provides the font; and provides the minimum width for the drop down list. |
|
StringObjectDropdown(StringObjectPair[] pairs,
Action action,
Font font,
int minWidth,
boolean sort)
The constructor that uses a pairs array to construct the internal two way map; provides the action to perform when an option is selected; provides the font; provides the minimum width for the drop down list; and allows the choice of whether or not to sort the strings. |
|
StringObjectDropdown(StringObjectPair[] pairs,
Action action,
int minWidth)
The constructor that uses a pairs array to construct the internal two way map; provides the action to perform when an option is selected; and provides the minimum width for the drop down list. |
|
StringObjectDropdown(StringObjectPair[] pairs,
Action action,
int minWidth,
boolean sort)
The constructor that uses a pairs array to construct the internal two way map; provides the action to perform when an option is selected; provides the minimum width for the drop down list; and allows the choice of whether or not to sort the strings. |
|
| Method Summary | |
void |
addPair(String string,
Object object)
Adds the new pair with the given string and object. |
void |
addPair(StringObjectPair pair)
Adds the new string-object pair. |
void |
addPairs(Object[][] pairs)
Adds the new pairs. |
void |
addPairs(StringObjectMap map)
Adds the new map. |
void |
addPairs(StringObjectPair[] pairs)
Adds the new pairs. |
Object |
getObject(String string)
Returns the Object associated with the given
String in this view or null if no
association is found. |
Object[] |
getObjects()
Returns the objects associated with the strings in this view. |
Object |
getSelectedObject()
Returns the object corresponding to the currently selected string in the view. |
String |
getSelectedString()
Returns the currently selected string in the view. |
String |
getString(Object object)
Returns the String associated with the given
Object in this view or null if no
association is found. |
StringObjectPair[] |
getStringObjectPairs()
Returns the string object pairs in this view. |
String[] |
getStrings()
Returns the strings in this view. |
protected void |
initializeSODropdown(StringObjectPair[] pairs,
Action action,
Font font,
int minWidth,
boolean sort)
The initializer. |
void |
removeAllItems()
Clears the data structure and view. |
void |
setFont(Font font)
Sets the font for this component. |
void |
setPairs(Object[][] pairs)
Clears the data structure and view and then adds the new pairs. |
void |
setPairs(StringObjectMap map)
Clears the data structure and view and then adds the new map. |
void |
setPairs(StringObjectPair[] pairs)
Clears the data structure and view and then adds the new pairs. |
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. |
| Methods inherited from class edu.neu.ccs.gui.Dropdown |
addItem, addItems, autoSetPreferredWidth, getDefaultFont, getDefaultViewState, getItems, getMinimumWidth, getPreferredSize, getPreferredWidth, getViewState, initializeDropdown, insertItemAt, refresh, refreshComponent, removeItem, removeItemAt, removeItems, reset, setDefaultViewState, setItems, setMinimumWidth, setPreferredWidth, setPreferredWidth, setPreferredWidth, setViewState |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.neu.ccs.gui.StringObjectView |
addActionListener, removeActionListener |
| Methods inherited from interface edu.neu.ccs.gui.Displayable |
setEnabled |
| Field Detail |
protected StringObjectMap pairmap
protected boolean sort
| Constructor Detail |
public StringObjectDropdown()
The default constructor.
Other constructors:
- StringObjectDropdown(Object[][])
- StringObjectDropdown(Object[][], Action)
- StringObjectDropdown(Object[][], Action, int)
- StringObjectDropdown(Object[][], Action, Font)
- StringObjectDropdown(Object[][], Action, Font, int)
- StringObjectDropdown(Object[][], Action, boolean)
- StringObjectDropdown(Object[][], Action, int, boolean)
- StringObjectDropdown(Object[][], Action, Font, boolean)
- StringObjectDropdown(Object[][], Action, Font, int, boolean)
- StringObjectDropdown(StringObjectPair[])
- StringObjectDropdown(StringObjectPair[], Action)
- StringObjectDropdown(StringObjectPair[], Action, int)
- StringObjectDropdown(StringObjectPair[], Action, Font)
- StringObjectDropdown(StringObjectPair[], Action, Font, int)
- StringObjectDropdown(StringObjectPair[], Action, boolean)
- StringObjectDropdown(StringObjectPair[], Action, int, boolean)
- StringObjectDropdown(StringObjectPair[], Action, Font, boolean)
- StringObjectDropdown(StringObjectPair[], Action, Font, int, boolean)
- StringObjectDropdown(StringObjectMap)
- StringObjectDropdown(StringObjectMap, Action)
- StringObjectDropdown(StringObjectMap, Action, int)
- StringObjectDropdown(StringObjectMap, Action, Font)
- StringObjectDropdown(StringObjectMap, Action, Font, int)
- StringObjectDropdown(StringObjectMap, Action, boolean)
- StringObjectDropdown(StringObjectMap, Action, int, boolean)
- StringObjectDropdown(StringObjectMap, Action, Font, boolean)
- StringObjectDropdown(StringObjectMap, Action, Font, int, boolean)
public StringObjectDropdown(Object[][] pairs)
The constructor that uses a pairs array to construct the internal two way map.
pairs - the string-object pairs to addStringObjectDropdown()
public StringObjectDropdown(Object[][] pairs,
Action action)
The constructor that uses a pairs array to construct the internal two way map; and provides the action to perform when an option is selected.
pairs - the string-object pairs to addaction - the action to perform when an option is selectedStringObjectDropdown()
public StringObjectDropdown(Object[][] pairs,
Action action,
int minWidth)
The constructor that uses a pairs array to construct the internal two way map; provides the action to perform when an option is selected; and provides the minimum width for the drop down list.
pairs - the string-object pairs to addaction - the action to perform when an option is selectedminWidth - the preferred minimum widthStringObjectDropdown()
public StringObjectDropdown(Object[][] pairs,
Action action,
Font font)
The constructor that uses a pairs array to construct the internal two way map; provides the action to perform when an option is selected; and provides the font.
pairs - the string-object pairs to addaction - the action to perform when an option is selectedfont - the font for the viewStringObjectDropdown()
public StringObjectDropdown(Object[][] pairs,
Action action,
Font font,
int minWidth)
The constructor that uses a pairs array to construct the internal two way map; provides the action to perform when an option is selected; provides the font; and provides the minimum width for the drop down list.
pairs - the string-object pairs to addaction - the action to perform when an option is selectedfont - the font for the viewminWidth - the preferred minimum widthStringObjectDropdown()
public StringObjectDropdown(Object[][] pairs,
Action action,
boolean sort)
The constructor that uses a pairs array to construct the internal two way map; provides the action to perform when an option is selected; and allows the choice of whether or not to sort the strings.
pairs - the string-object pairs to addaction - the action to perform when an option is selectedsort - whether or not to sort the strings before insertion in the viewStringObjectDropdown()
public StringObjectDropdown(Object[][] pairs,
Action action,
int minWidth,
boolean sort)
The constructor that uses a pairs array to construct the internal two way map; provides the action to perform when an option is selected; provides the minimum width for the drop down list; and allows the choice of whether or not to sort the strings.
pairs - the string-object pairs to addaction - the action to perform when an option is selectedminWidth - the preferred minimum widthsort - whether or not to sort the strings before insertion in the viewStringObjectDropdown()
public StringObjectDropdown(Object[][] pairs,
Action action,
Font font,
boolean sort)
The constructor that uses a pairs array to construct the internal two way map; provides the action to perform when an option is selected; provides the font; and allows the choice of whether or not to sort the strings.
pairs - the string-object pairs to addaction - the action to perform when an option is selectedfont - the font for the viewsort - whether or not to sort the strings before insertion in the viewStringObjectDropdown()
public StringObjectDropdown(Object[][] pairs,
Action action,
Font font,
int minWidth,
boolean sort)
The constructor that uses a pairs array to construct the internal two way map; provides the action to perform when an option is selected; provides the font; provides the minimum width for the drop down list; and allows the choice of whether or not to sort the strings.
pairs - the string-object pairs to addaction - the action to perform when an option is selectedfont - the font for the viewminWidth - the preferred minimum widthsort - whether or not to sort the strings before insertion in the viewStringObjectDropdown()public StringObjectDropdown(StringObjectPair[] pairs)
The constructor that uses a pairs array to construct the internal two way map.
pairs - the string-object pairs to addStringObjectDropdown()
public StringObjectDropdown(StringObjectPair[] pairs,
Action action)
The constructor that uses a pairs array to construct the internal two way map; and provides the action to perform when an option is selected.
pairs - the string-object pairs to addaction - the action to perform when an option is selectedStringObjectDropdown()
public StringObjectDropdown(StringObjectPair[] pairs,
Action action,
int minWidth)
The constructor that uses a pairs array to construct the internal two way map; provides the action to perform when an option is selected; and provides the minimum width for the drop down list.
pairs - the string-object pairs to addaction - the action to perform when an option is selectedminWidth - the preferred minimum widthStringObjectDropdown()
public StringObjectDropdown(StringObjectPair[] pairs,
Action action,
Font font)
The constructor that uses a pairs array to construct the internal two way map; provides the action to perform when an option is selected; and provides the font.
pairs - the string-object pairs to addaction - the action to perform when an option is selectedfont - the font for the viewStringObjectDropdown()
public StringObjectDropdown(StringObjectPair[] pairs,
Action action,
Font font,
int minWidth)
The constructor that uses a pairs array to construct the internal two way map; provides the action to perform when an option is selected; provides the font; and provides the minimum width for the drop down list.
pairs - the string-object pairs to addaction - the action to perform when an option is selectedfont - the font for the viewminWidth - the preferred minimum widthStringObjectDropdown()
public StringObjectDropdown(StringObjectPair[] pairs,
Action action,
boolean sort)
The constructor that uses a pairs array to construct the internal two way map; provides the action to perform when an option is selected; and allows the choice of whether or not to sort the strings.
pairs - the string-object pairs to addaction - the action to perform when an option is selectedsort - whether or not to sort the strings before insertion in the viewStringObjectDropdown()
public StringObjectDropdown(StringObjectPair[] pairs,
Action action,
int minWidth,
boolean sort)
The constructor that uses a pairs array to construct the internal two way map; provides the action to perform when an option is selected; provides the minimum width for the drop down list; and allows the choice of whether or not to sort the strings.
pairs - the string-object pairs to addaction - the action to perform when an option is selectedminWidth - the preferred minimum widthsort - whether or not to sort the strings before insertion in the viewStringObjectDropdown()
public StringObjectDropdown(StringObjectPair[] pairs,
Action action,
Font font,
boolean sort)
The constructor that uses a pairs array to construct the internal two way map; provides the action to perform when an option is selected; provides the font; and allows the choice of whether or not to sort the strings.
pairs - the string-object pairs to addaction - the action to perform when an option is selectedfont - the font for the viewsort - whether or not to sort the strings before insertion in the viewStringObjectDropdown()
public StringObjectDropdown(StringObjectPair[] pairs,
Action action,
Font font,
int minWidth,
boolean sort)
The constructor that uses a pairs array to construct the internal two way map; provides the action to perform when an option is selected; provides the font; provides the minimum width for the drop down list; and allows the choice of whether or not to sort the strings.
pairs - the string-object pairs to addaction - the action to perform when an option is selectedfont - the font for the viewminWidth - the preferred minimum widthsort - whether or not to sort the strings before insertion in the viewStringObjectDropdown()public StringObjectDropdown(StringObjectMap map)
The constructor that copies the given string-object map to construct the internal string-object map.
map - the string-object map to addStringObjectDropdown()
public StringObjectDropdown(StringObjectMap map,
Action action)
The constructor that copies the given string-object map to construct the internal string-object map; and provides the action to perform when an option is selected.
map - the string-object map to addaction - the action to perform when an option is selectedStringObjectDropdown()
public StringObjectDropdown(StringObjectMap map,
Action action,
int minWidth)
The constructor that copies the given string-object map to construct the internal string-object map; provides the action to perform when an option is selected; and provides the minimum width for the drop down list.
map - the string-object map to addaction - the action to perform when an option is selectedminWidth - the preferred minimum widthStringObjectDropdown()
public StringObjectDropdown(StringObjectMap map,
Action action,
Font font)
The constructor that copies the given string-object map to construct the internal string-object map; provides the action to perform when an option is selected and provides the font.
map - the string-object map to addaction - the action to perform when an option is selectedfont - the font for the viewStringObjectDropdown()
public StringObjectDropdown(StringObjectMap map,
Action action,
Font font,
int minWidth)
The constructor that copies the given string-object map to construct the internal string-object map; provides the action to perform when an option is selected; provides the font; and provides the minimum width for the drop down list.
map - the string-object map to addaction - the action to perform when an option is selectedfont - the font for the viewminWidth - the preferred minimum widthStringObjectDropdown()
public StringObjectDropdown(StringObjectMap map,
Action action,
boolean sort)
The constructor that copies the given string-object map to construct the internal string-object map; provides the action to perform when an option is selected; and allows the choice of whether or not to sort the strings.
map - the string-object map to addaction - the action to perform when an option is selectedsort - whether or not to sort the strings before insertion in the viewStringObjectDropdown()
public StringObjectDropdown(StringObjectMap map,
Action action,
int minWidth,
boolean sort)
The constructor that copies the given string-object map to construct the internal string-object map; provides the action to perform when an option is selected; provides the minimum width for the drop down list; and allows the choice of whether or not to sort the strings.
map - the string-object map to addaction - the action to perform when an option is selectedminWidth - the preferred minimum widthsort - whether or not to sort the strings before insertion in the viewStringObjectDropdown()
public StringObjectDropdown(StringObjectMap map,
Action action,
Font font,
boolean sort)
The constructor that copies the given string-object map to construct the internal string-object map; provides the action to perform when an option is selected; provides the font; and allows the choice of whether or not to sort the strings.
map - the string-object map to addaction - the action to perform when an option is selectedfont - the font for the viewsort - whether or not to sort the strings before insertion in the viewStringObjectDropdown()
public StringObjectDropdown(StringObjectMap map,
Action action,
Font font,
int minWidth,
boolean sort)
The constructor that copies the given string-object map to construct the internal string-object map; provides the action to perform when an option is selected; provides the font; provides the minimum width for the drop down list; and allows the choice of whether or not to sort the strings.
map - the string-object map to addaction - the action to perform when an option is selectedfont - the font for the viewminWidth - the preferred minimum widthsort - whether or not to sort the strings before insertion in the viewStringObjectDropdown()| Method Detail |
protected final void initializeSODropdown(StringObjectPair[] pairs,
Action action,
Font font,
int minWidth,
boolean sort)
pairs - the string-object pairs to addaction - the action to perform when an option is selectedfont - the font for the viewminWidth - the preferred minimum widthsort - whether or not to sort the strings before insertion in the viewpublic final String getSelectedString()
Returns the currently selected string in the view.
getSelectedString in interface StringObjectViewgetSelectedObject()public final Object getSelectedObject()
Returns the object corresponding to the currently selected string in the view.
getSelectedObject in interface StringObjectViewgetSelectedString()public final 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.
Fires property change Displayable.VIEW_STATE.
setSelectedString in interface StringObjectViewstring - the string to use to set the viewsetSelectedObject(Object)public final 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.
Fires property change Displayable.VIEW_STATE.
setSelectedObject in interface StringObjectViewobject - the object to use to set the viewsetSelectedString(String)public final StringObjectPair[] getStringObjectPairs()
Returns the string object pairs in this view. The string object pairs are sorted if string sorting was specified in a constructor.
getStrings(),
getObjects()public final String[] getStrings()
Returns the strings in this view. The strings are sorted if string sorting was specified in a constructor.
getStringObjectPairs(),
getObjects()public final Object[] getObjects()
Returns the objects associated with the strings in this view. The objects are sorted according to the ordering of the strings if string sorting was specified in a constructor.
getStringObjectPairs(),
getStrings()public final String getString(Object object)
Returns the String associated with the given
Object in this view or null if no
association is found.
object - the object to associate with a string
getObject(String)public final Object getObject(String string)
Returns the Object associated with the given
String in this view or null if no
association is found.
string - the string to associate with an object
getString(Object)public final void setPairs(Object[][] pairs)
Clears the data structure and view and then adds the new pairs.
pairs - the string-object pairs to setsetPairs(StringObjectPair[]),
setPairs(StringObjectMap)public final void setPairs(StringObjectPair[] pairs)
Clears the data structure and view and then adds the new pairs.
pairs - the string-object pairs to setsetPairs(Object[][]),
setPairs(StringObjectMap)public final void setPairs(StringObjectMap map)
Clears the data structure and view and then adds the new map.
map - the string-object map to setsetPairs(Object[][]),
setPairs(StringObjectPair[])
public final void addPair(String string,
Object object)
Adds the new pair with the given string and object.
string - the stringobject - the objectaddPair(StringObjectPair)public final void addPair(StringObjectPair pair)
Adds the new string-object pair.
pair - the string-object pairpublic final void addPairs(Object[][] pairs)
Adds the new pairs.
pairs - the string-object pairs to addaddPairs(StringObjectPair[]),
addPairs(StringObjectMap)public final void addPairs(StringObjectPair[] pairs)
Adds the new pairs.
pairs - the string-object pairs to addaddPairs(Object[][]),
addPairs(StringObjectMap)public final void addPairs(StringObjectMap map)
Adds the new map.
map - the string-object map to addaddPairs(Object[][]),
addPairs(StringObjectPair[])public final void removeAllItems()
Clears the data structure and view.
removeAllItems in class Dropdownpublic void setFont(Font font)
Sets the font for this component.
If the given font is null then it is set to
getDefaultFont().
Fires property change FONT.
setFont in class Dropdownfont - the font to set for this view
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||