ElegantJ Trees Java API Specification v1.1

com.elegantj.awt.tree
Class CheckboxObject

java.lang.Object
  extended bycom.elegantj.awt.tree.CheckboxObject
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class CheckboxObject
extends java.lang.Object
implements java.io.Externalizable

CheckboxObject for the passing value between CheckboxTreeCellEditor and CheckboxTreeCellRenderer

See Also:
Serialized Form

Constructor Summary
CheckboxObject()
           
CheckboxObject(boolean state, java.lang.String label)
          Constructs the CheckboxObject
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares the two checkbox objects
 java.lang.String getLabel()
          Returns the label of the checkbox
 boolean getState()
          Returns the state of the checkbox
 void readExternal(java.io.ObjectInput in)
           
 void setLabel(java.lang.String label)
          Sets the state of the label
 void setState(boolean state)
          Sets the state of the checkbox
 java.lang.String toString()
          Returns the string representation of the Checkbox Object
 void writeExternal(java.io.ObjectOutput out)
          Implementation of the Externalizable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CheckboxObject

public CheckboxObject()

CheckboxObject

public CheckboxObject(boolean state,
                      java.lang.String label)
Constructs the CheckboxObject

Parameters:
state - The state for the checkbox
label - The label for the checkbox
Method Detail

setState

public void setState(boolean state)
Sets the state of the checkbox


getState

public boolean getState()
Returns the state of the checkbox

Returns:
The state of the checkbox

setLabel

public void setLabel(java.lang.String label)
Sets the state of the label


getLabel

public java.lang.String getLabel()
Returns the label of the checkbox

Returns:
The label of the checkbox

toString

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


equals

public boolean equals(java.lang.Object obj)
Compares the two checkbox objects

Parameters:
obj - The CheckboxObject
Returns:
The flag is equals or not

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException,
                          java.awt.IllegalComponentStateException
Implementation of the Externalizable

Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.awt.IllegalComponentStateException

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.