ElegantJ Trees Java API Specification v1.1

com.elegantj.awt.tree
Class ChoiceObject

java.lang.Object
  extended bycom.elegantj.awt.tree.ChoiceObject

public class ChoiceObject
extends java.lang.Object

Object which is used for the passing object between the ChoiceAWTTreeCellEditor and ChoiceAWTTreeCellRenderer


Constructor Summary
ChoiceObject()
          Constructs the ChoiceObject
ChoiceObject(java.util.Vector items, java.lang.String selectedItem)
          Constructs the ChoiceObject with specified items and selected item
 
Method Summary
 java.util.Vector getItems()
          Returns the items contain by the ChoiceObject
 java.lang.String getSelectedItem()
          Returns the selected item of the ChoiceObject
 void setItems(java.util.Vector items)
          Sets the items for the choice object
 void setSelectedItem(java.lang.String selectedItem)
          Sets the selected item for the ChoiceObject
 java.lang.String toString()
          Returns the string representation of the ChoiceObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChoiceObject

public ChoiceObject()
Constructs the ChoiceObject


ChoiceObject

public ChoiceObject(java.util.Vector items,
                    java.lang.String selectedItem)
Constructs the ChoiceObject with specified items and selected item

Method Detail

setItems

public void setItems(java.util.Vector items)
Sets the items for the choice object

Parameters:
items - The items for the choice object

getItems

public java.util.Vector getItems()
Returns the items contain by the ChoiceObject

Returns:
The items contain by the ChoiceObject

setSelectedItem

public void setSelectedItem(java.lang.String selectedItem)
Sets the selected item for the ChoiceObject

Parameters:
selectedItem - The selected item for the ChoiceObject

getSelectedItem

public java.lang.String getSelectedItem()
Returns the selected item of the ChoiceObject


toString

public java.lang.String toString()
Returns the string representation of the ChoiceObject

Returns:
The string representation of the ChoiceObject

ElegantJ Trees Java API Specification v1.1

Submit a bug or feature

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjbeans.com
All Rights Reserved.