Class Button
java.lang.Object
javaforce.ui.Component
javaforce.ui.FontComponent
javaforce.ui.TextComponent
javaforce.ui.Button
- All Implemented Interfaces:
KeyCode, KeyEvents, MouseEvents, ScrollLink
- Direct Known Subclasses:
ToggleButton
-
Field Summary
Fields inherited from class Component
backClr, borderStyle, consumer, debug, disabledClr, editable, enabled, focusable, focused, foreClr, layer, parent, pos, selectedClr, size, visible, zeroFields inherited from interface KeyCode
VK_0, VK_1, VK_2, VK_3, VK_4, VK_5, VK_6, VK_7, VK_8, VK_9, VK_A, VK_ALT_L, VK_ALT_R, VK_B, VK_BACKSLASH, VK_BACKSPACE, VK_C, VK_CAPS_LOCK, VK_COMMA, VK_CONTROL_L, VK_CONTROL_R, VK_D, VK_DELETE, VK_DIVIDE, VK_DOWN, VK_E, VK_END, VK_ENTER, VK_ESCAPE, VK_F, VK_F1, VK_F10, VK_F11, VK_F12, VK_F2, VK_F3, VK_F4, VK_F5, VK_F6, VK_F7, VK_F8, VK_F9, VK_G, VK_H, VK_HOME, VK_I, VK_INSERT, VK_J, VK_K, VK_KEYPAD_0, VK_KEYPAD_1, VK_KEYPAD_2, VK_KEYPAD_3, VK_KEYPAD_4, VK_KEYPAD_5, VK_KEYPAD_6, VK_KEYPAD_7, VK_KEYPAD_8, VK_KEYPAD_9, VK_KEYPAD_DIVIDE, VK_KEYPAD_ENTER, VK_KEYPAD_LOCK, VK_KEYPAD_MINUS, VK_KEYPAD_MULTIPLY, VK_KEYPAD_PERIOD, VK_KEYPAD_PLUS, VK_L, VK_LEFT, VK_M, VK_MENU, VK_N, VK_O, VK_OS, VK_P, VK_PAGE_DOWN, VK_PAGE_UP, VK_PAUSE, VK_PERIOD, VK_Q, VK_R, VK_RIGHT, VK_S, VK_SCROLL_LOCK, VK_SHIFT_L, VK_SHIFT_R, VK_SPACE, VK_T, VK_TAB, VK_TILDE, VK_U, VK_UP, VK_V, VK_W, VK_X, VK_Y, VK_Z -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoAction()voidkeyReleased(int key) voidmouseUp(int button) voidprotected voidrenderText(Image image, int dx, int dy) voidsetActionListner(ActionListener action) voidtoString()Methods inherited from class TextComponent
clearSelection, getClientX, getClientY, getCursorLine, getCursorOffset, getLength, getLineCount, getLineLength, getLineText, getMaxLength, getSelectionEndLine, getSelectionEndOffset, getSelectionStartLine, getSelectionStartOffset, getText, getViewX, getViewY, haveSelection, isEOL, isOverwrite, keyPressed, keyTyped, mouseDown, setClientX, setClientY, setCursorLine, setCursorOffset, setCursorPosition, setLineText, setLink, setMultiSelection, setOverwrite, setSelection, setText, showCursorMethods inherited from class FontComponent
getFont, setFontMethods inherited from class Component
getBackColor, getBorderStyle, getDisabledColor, getForeColor, getHeight, getKeyState, getLayer, getMinHeight, getMinWidth, getMousePosition, getMouseX, getMouseY, getPosition, getSelectedColor, getSize, getTopContainer, getWidth, getX, getY, isConsumer, isContainer, isEditable, isEnabled, isFocusable, isFocused, isInside, isVisible, layout, load, mouseMove, mouseScroll, onBlur, onFocus, renderLayer, save, setBackColor, setBorderStyle, setConsumer, setDisabledColor, setEditable, setEnabled, setFocus, setFocusable, setForeColor, setLayer, setParent, setPosition, setPosition, setSelectedColor, setSize, setSize, setVisible
-
Constructor Details
-
Button
-
Button
-
-
Method Details
-
getMinSize
- Overrides:
getMinSizein classTextComponent
-
renderText
-
render
-
setImage
-
toString
-
doAction
protected void doAction() -
mouseUp
public void mouseUp(int button) - Specified by:
mouseUpin interfaceMouseEvents- Overrides:
mouseUpin classComponent
-
keyReleased
public void keyReleased(int key) - Specified by:
keyReleasedin interfaceKeyEvents- Overrides:
keyReleasedin classComponent
-
setActionListner
-