|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wewebu.ow.server.app.OwDefaultComboModel
public class OwDefaultComboModel
Default implementation for combo box model.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
| Field Summary |
|---|
| Fields inherited from interface com.wewebu.ow.server.app.OwComboModel |
|---|
EMPTY_VALUE |
| Constructor Summary | |
|---|---|
OwDefaultComboModel(boolean allowEmptyItem_p,
boolean allowNotInList_p,
String value_p,
List items_p)
Constructor |
|
OwDefaultComboModel(boolean allowEmptyItem_p,
boolean allowNotInList_p,
String value_p,
List items_p,
String emptyDisplayValue_p)
Constructor |
|
OwDefaultComboModel(boolean allowEmptyItem_p,
boolean allowNotInList_p,
String value_p,
String[] values_p,
String[] displayNames_p)
Constructor |
|
OwDefaultComboModel(boolean allowEmptyItem_p,
boolean allowNotInList_p,
String value_p,
String[] values_p,
String[] displayNames_p,
String emptyDisplayValue_p)
Constructor |
|
OwDefaultComboModel(String value_p,
List items_p)
Constructor |
|
OwDefaultComboModel(String value_p,
String[] values_p,
String[] displayNames_p)
Constructor |
|
| Method Summary | |
|---|---|
OwComboItem[] |
getAllItems()
Get all items. |
OwComboItem |
getItemAt(int position_p)
Return the OwComboItem object at the specified position. |
OwComboItem |
getSelectedItem()
Return the selected OwComboItem object. |
int |
getSize()
Get the number of items in this model. |
boolean |
hasItemOutOfRange()
Specify if the model has an item that is out of range. |
boolean |
isSelectedItem(OwComboItem item_p)
Check if the given item is the selected one. |
void |
setSelectedItem(OwComboItem item_p)
Set the given item as selected. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OwDefaultComboModel(String value_p,
String[] values_p,
String[] displayNames_p)
value_p - - the selected value.values_p - - the array of available values.displayNames_p - - the array of available display values.
public OwDefaultComboModel(boolean allowEmptyItem_p,
boolean allowNotInList_p,
String value_p,
String[] values_p,
String[] displayNames_p,
String emptyDisplayValue_p)
allowEmptyItem_p - - flag that specify if empty item is allowed.allowNotInList_p - - flag that specify if items that are not item list are allowed.value_p - - the selected value.values_p - - the array of available values.displayNames_p - - the array of available display values.emptyDisplayValue_p - - the display value for empty item.
public OwDefaultComboModel(boolean allowEmptyItem_p,
boolean allowNotInList_p,
String value_p,
String[] values_p,
String[] displayNames_p)
allowEmptyItem_p - - flag that specify if empty item is allowed.allowNotInList_p - - flag that specify if items that are not item list are allowed.value_p - - the selected value.values_p - - the array of available values.displayNames_p - - the array of available display values.
public OwDefaultComboModel(boolean allowEmptyItem_p,
boolean allowNotInList_p,
String value_p,
List items_p,
String emptyDisplayValue_p)
allowEmptyItem_p - - flag that specify if empty item is allowed.allowNotInList_p - - flag that specify if items that are not item list are allowed.value_p - - the selected value.items_p - - the list with OwComboItem objects.emptyDisplayValue_p - - the display value for empty item.
public OwDefaultComboModel(boolean allowEmptyItem_p,
boolean allowNotInList_p,
String value_p,
List items_p)
allowEmptyItem_p - - flag that specify if empty item is allowed.allowNotInList_p - - flag that specify if items that are not item list are allowed.value_p - - the selected value.items_p - - the list with OwComboItem objects.
public OwDefaultComboModel(String value_p,
List items_p)
value_p - - the selected value.items_p - - the list with OwComboItem objects.| Method Detail |
|---|
public OwComboItem[] getAllItems()
OwComboModel
getAllItems in interface OwComboModelOwComboItem objects.public OwComboItem getItemAt(int position_p)
OwComboModelOwComboItem object at the specified position. Can be null.
getItemAt in interface OwComboModelposition_p - - the position in the listpublic OwComboItem getSelectedItem()
OwComboModelOwComboItem object. Can be null.
getSelectedItem in interface OwComboModelpublic int getSize()
OwComboModel
getSize in interface OwComboModelpublic boolean hasItemOutOfRange()
OwComboModel
hasItemOutOfRange in interface OwComboModeltrue if this model has an item out of range.public boolean isSelectedItem(OwComboItem item_p)
OwComboModel
isSelectedItem in interface OwComboModelitem_p - - the given OwComboItem object
true if the given item is selected.public void setSelectedItem(OwComboItem item_p)
OwComboModel
setSelectedItem in interface OwComboModelitem_p - - the OwComboItem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||