public class OwFieldManagerComboModel extends Object implements OwComboModel
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
EMPTY_VALUE| Constructor and Description |
|---|
OwFieldManagerComboModel(Locale locale_p,
boolean allowEmptyField_p,
String selectedValue_p,
String[] displayNames_p,
String[] values_p)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.public OwComboItem[] getAllItems()
OwComboModelgetAllItems in interface OwComboModelOwComboItem objects.public OwComboItem getSelectedItem()
OwComboModelOwComboItem object. Can be null.getSelectedItem in interface OwComboModelpublic int getSize()
OwComboModelgetSize in interface OwComboModelpublic boolean isSelectedItem(OwComboItem item_p)
OwComboModelisSelectedItem in interface OwComboModelitem_p - - the given OwComboItem objecttrue if the given item is selected.public void setSelectedItem(OwComboItem item_p)
OwComboModelsetSelectedItem in interface OwComboModelitem_p - - the OwComboItempublic OwComboItem getItemAt(int position_p)
OwComboModelOwComboItem object at the specified position. Can be null.getItemAt in interface OwComboModelposition_p - - the position in the listpublic boolean hasItemOutOfRange()
OwComboModelhasItemOutOfRange in interface OwComboModeltrue if this model has an item out of range.Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.