com.wewebu.ow.server.app
Interface OwComboModel

All Known Implementing Classes:
OwDefaultComboModel, OwFieldManagerComboModel

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

Since:
3.0.0.0

Field Summary
static String EMPTY_VALUE
          empty value
 
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.
 

Field Detail

EMPTY_VALUE

static final String EMPTY_VALUE
empty value

See Also:
Constant Field Values
Method Detail

getAllItems

OwComboItem[] getAllItems()
Get all items.

Returns:
- an array of OwComboItem objects.

getSelectedItem

OwComboItem getSelectedItem()
Return the selected OwComboItem object. Can be null.


getItemAt

OwComboItem getItemAt(int position_p)
Return the OwComboItem object at the specified position. Can be null.

Parameters:
position_p - - the position in the list

setSelectedItem

void setSelectedItem(OwComboItem item_p)
Set the given item as selected.

Parameters:
item_p - - the OwComboItem

getSize

int getSize()
Get the number of items in this model.

Returns:
the number of items.

isSelectedItem

boolean isSelectedItem(OwComboItem item_p)
Check if the given item is the selected one.

Parameters:
item_p - - the given OwComboItem object
Returns:
- true if the given item is selected.

hasItemOutOfRange

boolean hasItemOutOfRange()
Specify if the model has an item that is out of range. E.g: if a choice list has 3 values in the ECM, and one of the values is stored as a property for an object, and than the stored value is removed from choice list, that value is no longer in the choice range.

Returns:
true if this model has an item out of range.


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.