public interface OwComboModel
Interface 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
Modifier and Type | Field and Description |
---|---|
static String |
EMPTY_VALUE
empty value
|
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.
|
static final String EMPTY_VALUE
OwComboItem[] getAllItems()
OwComboItem
objects.OwComboItem getSelectedItem()
OwComboItem
object. Can be null.OwComboItem getItemAt(int position_p)
OwComboItem
object at the specified position. Can be null.position_p
- - the position in the listvoid setSelectedItem(OwComboItem item_p)
item_p
- - the OwComboItem
int getSize()
boolean isSelectedItem(OwComboItem item_p)
item_p
- - the given OwComboItem
objecttrue
if the given item is selected.boolean hasItemOutOfRange()
true
if this model has an item out of range.Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.