|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wewebu.ow.server.app.OwFieldManagerComboModel
public class OwFieldManagerComboModel
Combo Box Model used when OwFieldManager
needs to display combobox fields.
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 | |
---|---|
OwFieldManagerComboModel(Locale locale_p,
boolean allowEmptyField_p,
String selectedValue_p,
String[] displayNames_p,
String[] values_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 OwFieldManagerComboModel(Locale locale_p, boolean allowEmptyField_p, String selectedValue_p, String[] displayNames_p, String[] values_p)
locale_p
- - the current Locale
object.allowEmptyField_p
- - flag specifying that empty value is allowed.selectedValue_p
- - the selected value.displayNames_p
- - the display names array.values_p
- - the values array.Method Detail |
---|
public OwComboItem[] getAllItems()
OwComboModel
getAllItems
in interface OwComboModel
OwComboItem
objects.public OwComboItem getSelectedItem()
OwComboModel
OwComboItem
object. Can be null.
getSelectedItem
in interface OwComboModel
public int getSize()
OwComboModel
getSize
in interface OwComboModel
public boolean isSelectedItem(OwComboItem item_p)
OwComboModel
isSelectedItem
in interface OwComboModel
item_p
- - the given OwComboItem
object
true
if the given item is selected.public void setSelectedItem(OwComboItem item_p)
OwComboModel
setSelectedItem
in interface OwComboModel
item_p
- - the OwComboItem
public OwComboItem getItemAt(int position_p)
OwComboModel
OwComboItem
object at the specified position. Can be null.
getItemAt
in interface OwComboModel
position_p
- - the position in the listpublic boolean hasItemOutOfRange()
OwComboModel
hasItemOutOfRange
in interface OwComboModel
true
if this model has an item out of range.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |