| |
|
| com.javujavu.javux.wings.WingComponent com.javujavu.javux.wings.WingLabel com.javujavu.javux.wings.WingButton com.javujavu.javux.wings.WingCheckBox
WingCheckBox | public class WingCheckBox extends WingButton implements ItemSelectable(Code) | | An implementation of a check box.
This component has 3 looks: checkbox, radio button and toggle button
This class is thread safe.
|
Constructor Summary | |
public | WingCheckBox() Creates a check box with no label and look CHECKBOX. | public | WingCheckBox(int look) Creates a check box with no label and specified look. | public | WingCheckBox(Object label) Creates a check box with label label and look CHECKBOX. | public | WingCheckBox(Object label, int look) Creates a check box with label label and specified look. |
selected | protected boolean selected(Code) | | |
WingCheckBox | public WingCheckBox()(Code) | | Creates a check box with no label and look CHECKBOX.
|
WingCheckBox | public WingCheckBox(int look)(Code) | | Creates a check box with no label and specified look.
WingCheckBox.CHECKBOX, WingCheckBox.RADIO and WingCheckBox.TOGGLE
is allowed.
Parameters: look - look of the checkbox |
WingCheckBox | public WingCheckBox(Object label)(Code) | | Creates a check box with label label and look CHECKBOX.
Parameters: label - label |
WingCheckBox | public WingCheckBox(Object label, int look)(Code) | | Creates a check box with label label and specified look.
WingCheckBox.CHECKBOX, WingCheckBox.RADIO and WingCheckBox.TOGGLE
is allowed.
Parameters: look - look of the checkbox Parameters: label - label |
buttonAction | protected void buttonAction(int eventModifiers)(Code) | | |
getSelectedObjects | public Object[] getSelectedObjects()(Code) | | Returns an array (length 1) containing the label or
null if the checkbox is not selected.
an array containing 1 Object: the label of the checkbox,if the item is selected; otherwise null |
getStyle | public Style getStyle()(Code) | | Returns the style representing current checkbox state
current style representing checkbox state |
isSelected | public boolean isSelected()(Code) | | Returns the state of the checkbox. True if the
checkbox is selected, false if it's not.
true if the checkbox is selected, otherwise false |
loadSkin | public void loadSkin()(Code) | | Loads skin resources.
styles:
[optional styleID.]<look>.normal
[optional styleID.]<look>.pressed
[optional styleID.]<look>.focused
[optional styleID.]<look>.hover
[optional styleID.]<look>.disabled
[optional styleID.]<look>.on.normal
[optional styleID.]<look>.on.pressed
[optional styleID.]<look>.on.focused
[optional styleID.]<look>.on.hover
[optional styleID.]<look>.on.disabled
where <look>= "checkbox" or "radio" or "button"
See Also: Style See Also: WingSkin |
setSelected | public void setSelected(boolean select)(Code) | | Sets the selected state of the checkbox.
Parameters: select - true if the checkbox is selected, otherwise false |
setSelected | protected void setSelected(boolean select, boolean notify)(Code) | | |
Methods inherited from com.javujavu.javux.wings.WingComponent | public void addActionListener(ActionListener l)(Code)(Java Doc) public void addItemListener(ItemListener l)(Code)(Java Doc) public void addNotify()(Code)(Java Doc) public void addShortcut(Shortcut s)(Code)(Java Doc) public void addShortcuts(WingComponent source)(Code)(Java Doc) protected void cancelPopup(WingComponent src)(Code)(Java Doc) protected static void clrPopup(WingComponent popup)(Code)(Java Doc) protected void dispatchEventOET(AWTEvent e)(Code)(Java Doc) protected boolean dispatchEventsOET()(Code)(Java Doc) protected void dispatchShortcuts(KeyEvent e)(Code)(Java Doc) protected void doScrollRectToVisible(Rectangle r)(Code)(Java Doc) public static void enablePopups(boolean enableLightweightPopups, boolean enableHeavyweightPopups)(Code)(Java Doc) public Color getBackground()(Code)(Java Doc) public String getClipboardText()(Code)(Java Doc) public Font getFont()(Code)(Java Doc) public Color getForeground()(Code)(Java Doc) public Dimension getMinimumSize()(Code)(Java Doc) public Frame getParentFrame()(Code)(Java Doc) public Dimension getPreferredSize()(Code)(Java Doc) public ItemRenderer getRenderer()(Code)(Java Doc) public WingRootPane getRootPane()(Code)(Java Doc) public void getScrollIncrements(Point unit, Point block)(Code)(Java Doc) public Style getStyle()(Code)(Java Doc) public Object getTooltipAt(int x, int y)(Code)(Java Doc) public Dimension getViewOrSize()(Code)(Java Doc) public Dimension getViewSize()(Code)(Java Doc) protected Dimension getViewSize(WingComponent child)(Code)(Java Doc) public WingFont getWingFont()(Code)(Java Doc) protected void hideTooltip()(Code)(Java Doc) public boolean imageUpdate(Image img, int infoflags, int x, int y, int w, int h)(Code)(Java Doc) public void invalidate()(Code)(Java Doc) public boolean isFocusTraversable()(Code)(Java Doc) public void loadSkin()(Code)(Java Doc) public void mouseWheelMoved(Object source, int wheelRotation)(Code)(Java Doc) public void paint(Graphics g)(Code)(Java Doc) public void paintBackground(Graphics g)(Code)(Java Doc) public void paintComponent(Graphics g)(Code)(Java Doc) public void postOnEventThread(AWTEvent e)(Code)(Java Doc) protected void processEvent(AWTEvent e)(Code)(Java Doc) protected void processKeyEvent(KeyEvent e)(Code)(Java Doc) protected void processMouseEvent(MouseEvent e)(Code)(Java Doc) protected void processMouseMotionEvent(MouseEvent e)(Code)(Java Doc) public void removeActionListener(ActionListener l)(Code)(Java Doc) public void removeItemListener(ItemListener l)(Code)(Java Doc) public void removeShortcut(Shortcut s)(Code)(Java Doc) public void removeShortcuts(WingComponent source)(Code)(Java Doc) public void repaintVisible()(Code)(Java Doc) public boolean repaintVisible(int x, int y, int width, int height)(Code)(Java Doc) public void revalidateAndRepaint()(Code)(Java Doc) public void scrollRectToVisible(Rectangle r)(Code)(Java Doc) public void setClipboardText(String text)(Code)(Java Doc) public static void setDebugDelay(int debugDelay)(Code)(Java Doc) public static void setDoubleBuffering(boolean doubleBuffering)(Code)(Java Doc) public void setEnabled(boolean b)(Code)(Java Doc) protected static void setPopup(WingComponent popup)(Code)(Java Doc) public void setPreferredSize(Dimension prefSize)(Code)(Java Doc) public void setRenderer(ItemRenderer renderer)(Code)(Java Doc) public void setStyleId(String styleId)(Code)(Java Doc) public void setTooltip(Object tooltip)(Code)(Java Doc) public void setTopStyle(Style topStyle)(Code)(Java Doc) public void setWingFocusable(boolean focusable)(Code)(Java Doc) protected void showTooltip(Point point)(Code)(Java Doc) public void update(Graphics g)(Code)(Java Doc) protected void updateShortcuts(WingComponent target, boolean add)(Code)(Java Doc) public static void updateSkin(Container c)(Code)(Java Doc) protected void validateTree()(Code)(Java Doc) public void wingHierarchyChanged(boolean showing)(Code)(Java Doc) public void wingPaint(Graphics g)(Code)(Java Doc) protected void wingProcessActionEvent(ActionEvent e)(Code)(Java Doc) protected void wingProcessItemEvent(ItemEvent e)(Code)(Java Doc) protected void wingProcessKeyEvent(KeyEvent e, WingComponent redirecting)(Code)(Java Doc) protected void wingProcessMouseEvent(MouseEvent e)(Code)(Java Doc) public void wingRequestFocusInWindow()(Code)(Java Doc) protected void wingValidate()(Code)(Java Doc)
|
|
|
|