Oracle Fusion Middleware Java API Reference for Oracle Team Productivity Center
11g Release 2 (11.1.2.1.0)
E17494-02

oracle.alm.connector.data
Class SelectItem

java.lang.Object
  extended by oracle.alm.connector.data.SelectItem

public class SelectItem
extends java.lang.Object

The SelectItem class holds the list data for an UI component like checkbox. (selectOneCheckBox, selectManyCheckBox, single checkBox etc).

Since:
11.1.1.1.0

Nested Class Summary
static class SelectItem.SELECT_STATE
           
 
Constructor Summary
SelectItem()
          Constructs an empty SelectItem
SelectItem(java.lang.String label, java.lang.Object selValue, java.lang.Object unselValue, SelectItem.SELECT_STATE selState)
          Constructs a SelectItem with lable, selected value, unselected Value, and current selected state.
 
Method Summary
 java.lang.String getLabel()
          Retrieves the label of the selected item
 SelectItem.SELECT_STATE getSelectState()
          Retrieves the selection state of a checkbox
 java.lang.Object getSelectValue()
          Retrieves the value when the checkbox is selected.
 java.lang.Object getUnSelectValue()
          Retrieves the value when the checkbox is not selected.
 void setLabel(java.lang.String label)
          Sets the label of the selectedItem.
 void setSelectState(SelectItem.SELECT_STATE selState)
          Sets the checked state for the checkbox.
 void setSelectValue(java.lang.Object selValue)
          Sets the value when the checkbox is selected.
 void setUnSelectValue(java.lang.Object unselValue)
          Sets the value when the checkbox is unselected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectItem

public SelectItem()
Constructs an empty SelectItem


SelectItem

public SelectItem(java.lang.String label,
                  java.lang.Object selValue,
                  java.lang.Object unselValue,
                  SelectItem.SELECT_STATE selState)

Constructs a SelectItem with lable, selected value, unselected Value, and current selected state.

Parameters:
label - the label used for the text of a checkbox
selValue - the value used when the checkbox is selected
unselValue - the value used when the checkbox is unselected
selState - the selected state of the checkbox.
Method Detail

setLabel

public void setLabel(java.lang.String label)

Sets the label of the selectedItem.

Parameters:
label -

getLabel

public java.lang.String getLabel()
Retrieves the label of the selected item

Returns:
the label of the selected item

getSelectValue

public java.lang.Object getSelectValue()

Retrieves the value when the checkbox is selected.

Returns:
the selected value

setSelectValue

public void setSelectValue(java.lang.Object selValue)

Sets the value when the checkbox is selected.

Parameters:
selValue -

getUnSelectValue

public java.lang.Object getUnSelectValue()

Retrieves the value when the checkbox is not selected.

Returns:
the unselected value

setUnSelectValue

public void setUnSelectValue(java.lang.Object unselValue)

Sets the value when the checkbox is unselected.

Parameters:
unselValue -

getSelectState

public SelectItem.SELECT_STATE getSelectState()
Retrieves the selection state of a checkbox

Returns:
the selected state of a checkbox

setSelectState

public void setSelectState(SelectItem.SELECT_STATE selState)

Sets the checked state for the checkbox.

Parameters:
selState -

Oracle Fusion Middleware Java API Reference for Oracle Team Productivity Center
11g Release 2 (11.1.2.1.0)
E17494-02

Copyright © 1998,2011, Oracle. All rights reserved.