| |
|
| com.javujavu.javux.wings.WingComponent com.javujavu.javux.wings.WingLabel com.javujavu.javux.wings.WingButton
All known Subclasses: com.javujavu.javux.wings.WingCheckBox,
WingButton | public class WingButton extends WingLabel implements Shortcut(Code) | | An implementation of a button.
This class is thread safe.
|
fast | protected boolean fast(Code) | | |
focused | protected boolean focused(Code) | | |
hover | protected boolean hover(Code) | | |
keyPressed | protected boolean keyPressed(Code) | | |
pressed | protected boolean pressed(Code) | | |
repeat | protected boolean repeat(Code) | | |
shortcutCode | protected int shortcutCode(Code) | | |
shortcutModifiers | protected int shortcutModifiers(Code) | | |
WingButton | public WingButton()(Code) | | Creates a button with no label.
|
buttonAction | protected void buttonAction(int eventModifiers)(Code) | | |
getShortcutCode | public int getShortcutCode()(Code) | | Returns shortcut key code of this button
shortcut key code of this button See Also: Shortcut.getShortcutCode |
getShortcutModifiers | public int getShortcutModifiers()(Code) | | Returns shortcut key modifiers of this button
shortcut key modifiers of this button See Also: Shortcut.getShortcutModifiers |
getStyle | public Style getStyle()(Code) | | Returns the style representing current button state
current style representing button state |
loadSkin | public void loadSkin()(Code) | | Loads skin resources.
styles:
[optional styleID.]button.normal
[optional styleID.]button.pressed
[optional styleID.]button.focused
[optional styleID.]button.hover
[optional styleID.]button.disabled
See Also: Style See Also: WingSkin |
setEnabled | public void setEnabled(boolean enabled)(Code) | | Enables or disables this component, depending on the value of the
parameter enabled .
Parameters: enabled - |
setFastAction | public void setFastAction(boolean fastAction)(Code) | | Set fastAction mode.
in this mode action is fired when button is pressed.
Parameters: fastAction - fast action mode |
setRepeat | public void setRepeat(boolean repeat)(Code) | | Set auto-repeat mode.
Parameters: repeat - auto-repeat mode |
setShortcut | public void setShortcut(int keyCode, int modifiers)(Code) | | Set shortcut of this button
See Also: Shortcut Parameters: keyCode - shortcut key code of this button Parameters: modifiers - shortcut key modifiers of this button |
wingHierarchyChanged | public void wingHierarchyChanged(boolean showing)(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)
|
|
|
|