|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.yospace.yae.yogi.YogiComponent
|
+--com.yospace.yae.yogi.YogiImageComponent
|
+--com.yospace.yae.yogi.YogiLabel
|
+--com.yospace.yae.yogi.YogiButton
|
+--com.yospace.yae.yogi.YogiCheckBox
| Field Summary | |
static int |
PROPERTY_SELECTED
Constant for the selected property |
| Fields inherited from class com.yospace.yae.yogi.YogiLabel |
PROPERTY_TEXT, PROPERTY_TEXT_PLACEMENT |
| Fields inherited from class com.yospace.yae.yogi.YogiImageComponent |
PROPERTY_IMAGE |
| Constructor Summary | |
YogiCheckBox()
Default constructor sets up basic default model with the image set to null, text set to the empty string and selected set to false. |
|
YogiCheckBox(java.lang.String text,
Image image,
boolean selected)
Create a YogiCheckBox with the given text, image and selected state. |
|
| Method Summary | |
YogiComponent |
getCellRendererComponent(AbstractTable table,
java.lang.Object value,
boolean isSelected,
boolean cellHasFocus)
Provided to implement the RendererFactory interface. |
boolean |
isSelected()
Returns whether the YogiCheckBox is currently checked. |
void |
setSelected(boolean state)
Set the selected value of the YogiCheckBox. |
| Methods inherited from class com.yospace.yae.yogi.YogiLabel |
getText, isTextOnRight, setText, setTextImpl, setTextOnRight |
| Methods inherited from class com.yospace.yae.yogi.YogiImageComponent |
getImage, getImageName, setImage, setImage |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int PROPERTY_SELECTED
| Constructor Detail |
public YogiCheckBox()
public YogiCheckBox(java.lang.String text,
Image image,
boolean selected)
text - the text to be displayed.image - the image to be displayed.selected - whether the check box is to be initially selected or not.| Method Detail |
public boolean isSelected()
public void setSelected(boolean state)
If the value changes, the component is repainted and a PROPERTY_SELECTED change event
is fired.
state - the desired checked state for this component.
public YogiComponent getCellRendererComponent(AbstractTable table,
java.lang.Object value,
boolean isSelected,
boolean cellHasFocus)
RendererFactory interface.
Returns a YogiCheckBox customised to the arguments passed from the
AbstractTable subclass.getCellRendererComponent in class YogiLabeltable - The table for which the check box is rendering.value - The object to be custom rendererd.isSelected - The selected state of the object to be custom rendererd.cellHasFocus - The focus state of the object to be custom rendererd.
|
Copyright 2002 Yospace Holdings Ltd. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||