|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Choice
wt.clients.beans.ViewChoice
This class allows the selection of a wt.vc.views.View in a choice list. The choice list is populated with a list of all the Views defined in the system.
Supported API: true
Extendable: false
wt.vc.views.View;
,
Serialized FormNested Class Summary |
Nested classes inherited from class java.awt.Choice |
Choice.AccessibleAWTChoice |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
private boolean |
allChoiceAllowed
|
private boolean |
blankChoiceAllowed
|
private boolean |
displayNonSelectable
|
protected static ResourceBundle |
resource
|
protected static String |
RESOURCE
|
private static String |
UNSPECIFIED
|
protected View[] |
valueSet
|
Fields inherited from class java.awt.Choice |
|
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 | |
ViewChoice()
Creates a new ViewChoice menu. |
Method Summary | |
static WTContext |
getContext()
|
static ResourceBundle |
getLabelsRB()
|
static String |
getLocalizedMessage(String key,
Object[] params)
|
static String |
getLocalizedValue(String key)
|
View |
getSelectedView()
Gets a representation of the current choice as an View. |
protected View[] |
getViews()
|
protected static void |
initResources()
|
boolean |
isAllChoiceAllowed()
Determines if an "All" choice has been added to the list. |
boolean |
isBlankChoiceAllowed()
Determines if an blank choice has been added to the list. |
static void |
main(String[] args)
A main method that demonstrates how to use this class and allows testing. |
protected void |
redrawList()
Internal method to redraw the choice list. |
void |
setAllChoiceAllowed(boolean choice)
Sets if an "All" choice should be added to the list. |
void |
setBlankChoiceAllowed(boolean choice)
Sets if a blank choice should be added to the list. |
void |
setSelectedView(View view)
Sets the selected item in this Choice to be the item with the specified View value. |
void |
setViewModel(View[] views)
|
Methods inherited from class java.awt.Choice |
add, addItem, addItemListener, addNotify, countItems, getAccessibleContext, getItem, getItemCount, getItemListeners, getListeners, getSelectedIndex, getSelectedItem, getSelectedObjects, insert, paramString, processEvent, processItemEvent, remove, remove, removeAll, removeItemListener, select, select |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String UNSPECIFIED
protected View[] valueSet
private boolean allChoiceAllowed
private boolean blankChoiceAllowed
private boolean displayNonSelectable
protected static String RESOURCE
protected static ResourceBundle resource
Constructor Detail |
public ViewChoice()
Choice
Method Detail |
public void setViewModel(View[] views)
protected View[] getViews() throws WTException
WTException
public boolean isAllChoiceAllowed()
true
if the all choice is allowed; false
otherwise.setAllChoiceAllowed(boolean)
public void setAllChoiceAllowed(boolean choice)
isAllChoiceAllowed()
protected void redrawList()
public boolean isBlankChoiceAllowed()
true
if the blank choice is allowed; false
otherwise.setBlankChoiceAllowed(boolean)
public void setBlankChoiceAllowed(boolean choice)
isBlankChoiceAllowed()
public void setSelectedView(View view)
getSelectedView()
public View getSelectedView()
setSelectedView(wt.vc.views.View)
protected static void initResources()
public static WTContext getContext()
public static String getLocalizedMessage(String key, Object[] params)
public static ResourceBundle getLabelsRB()
public static String getLocalizedValue(String key)
public static void main(String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |