|
Java DTV API 1.0 12-Dec-2008 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.lwuit.Component
com.sun.dtv.ui.MatteEnabledComponent
com.sun.dtv.ui.ViewOnlyComponent
com.sun.lwuit.Label
com.sun.lwuit.Button
com.sun.lwuit.CheckBox
Checkbox is a button that can be selected or deselected, and which displays its state to the user.
Field Summary |
Fields inherited from class com.sun.lwuit.Button |
STATE_DEFAULT, STATE_PRESSED, STATE_ROLLOVER |
Fields inherited from class com.sun.dtv.ui.ViewOnlyComponent |
HORIZONTAL_ALIGN_CENTER, HORIZONTAL_ALIGN_JUSTIFIED, HORIZONTAL_ALIGN_LEFT, HORIZONTAL_ALIGN_RIGHT, SCALE_ASPECT_PROOF, SCALE_NO, SCALE_NO_ASPECT_PROOF, VERTICAL_ALIGN_BOTTOM, VERTICAL_ALIGN_CENTER, VERTICAL_ALIGN_JUSTIFIED, VERTICAL_ALIGN_TOP |
Fields inherited from class com.sun.lwuit.Component |
BOTTOM, BRB_CENTER_OFFSET, BRB_CONSTANT_ASCENT, BRB_CONSTANT_DESCENT, BRB_OTHER, CENTER, LEFT, RIGHT, TOP |
Fields inherited from interface com.sun.dtv.ui.Animated |
ALTERNATING, LOOP, REPEATING |
Constructor Summary | |
CheckBox()
Constructs a checkbox with no text. |
|
CheckBox(Image icon)
Constructs a checkbox with the given icon. |
|
CheckBox(String text)
Constructs a checkbox with the given text. |
|
CheckBox(String text,
Image icon)
Constructs a checkbox with the given text and icon. |
Method Summary | |
protected Dimension |
calcPreferredSize()
Calculates the preferred size based on component content. |
protected String |
getUIID()
Unique identifier for a component, must be overriden for a component so a style can be applied to the component. |
boolean |
isSelected()
Return true if the checkbox is selected. |
void |
paint(Graphics g)
Method to paint the component. |
protected String |
paramString()
Returns a string representing the state of this component. |
void |
setSelected(boolean selected)
Selects the current checkbox. |
Methods inherited from class com.sun.lwuit.Button |
addActionListener, fireClicked, getBorder, getPressedIcon, getRolloverIcon, getState, isSelectableInteraction, keyPressed, keyReleased, pointerPressed, pointerReleased, removeActionListener, setPressedIcon, setRolloverIcon |
Methods inherited from class com.sun.lwuit.Label |
animate, getAlignment, getBaselineResizeBehavior, getGap, getIcon, getShiftText, getText, getTextPosition, getVerticalAlignment, isEndsWith3Points, isTickerEnabled, isTickerRunning, setAlignment, setEndsWith3Points, setGap, setIcon, setShiftText, setText, setTextPosition, setTickerEnabled, setVerticalAlignment, startTicker, stopTicker |
Methods inherited from class com.sun.dtv.ui.ViewOnlyComponent |
getAnimateContent, getGraphicContent, getHorizontalAlignment, getInteractionState, getScalingMode, getTextContent, getTextLayoutManager, isOpaque, setAnimateContent, setGraphicContent, setHorizontalAlignment, setInteractionState, setScalingMode, setTextContent, setTextLayoutManager |
Methods inherited from class com.sun.dtv.ui.MatteEnabledComponent |
getMatte, isDoubleBuffered, processEvent, setMatte |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CheckBox(String text)
text
- to display next to the checkboxpublic CheckBox()
public CheckBox(Image icon)
icon
- icon to display next to the checkboxpublic CheckBox(String text, Image icon)
text
- to display next to the checkboxicon
- icon to display next to the textMethod Detail |
protected String getUIID()
Component
getUIID
in class Button
public boolean isSelected()
public void setSelected(boolean selected)
selected
- value for selectionpublic void paint(Graphics g)
ViewOnlyComponent
paint
in interface Animated
paint
in class Button
protected Dimension calcPreferredSize()
Component
calcPreferredSize
in class Button
protected String paramString()
Component
null
.
paramString
in class Label
|
Java DTV API 1.0 12-Dec-2008 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |