org.stellarium.ui.components
Class FlagButton
java.lang.Object
java.awt.event.KeyAdapter
org.stellarium.ui.components.StellariumComponent
org.stellarium.ui.components.CallbackComponent
org.stellarium.ui.components.Button
org.stellarium.ui.components.CheckBox
org.stellarium.ui.components.FlagButton
- All Implemented Interfaces:
- java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener,
java.awt.event.MouseWheelListener, java.util.EventListener
-
public class FlagButton
- extends CheckBox
Fields inherited from class org.stellarium.ui.components.StellariumComponent |
active, defaultPainter, desktop, focus, focusing, guiBaseColor, guiColorSchemeMember,
guiTextColor, moveToFront, needNewTopEdit, painter, pos, scissor, size, type, visible |
Constructor Summary |
FlagButton(boolean state,
STexture tex,
java.lang.String specificTexName)
|
Methods inherited from class org.stellarium.ui.components.CallbackComponent |
callbackOnClic,
callbackOnMove,
getActive, getFocus, getIsMouseOver, getPos, getPosx, getPosy, getSize, getSizeX, getSizeY, getVisible, mouseMoved,
setActive, setFocus, setFont,
setOnMouseInOutCallback,
setOnPressCallback,
setPos, setPos,
setPosx, setPosy, setSize, setSize,
setSizeX, setSizey, setTexture,
setVisible
|
Methods inherited from class org.stellarium.ui.components.StellariumComponent |
deleteScissor, disableScissor, enableScissor, getFont, getNeedNewEdit, getType, inFront, initScissor, isIn, keyPressed,
mouseDragged,
mouseEntered,
mouseExited,
mousePressed,
mouseReleased,
mouseWheelMoved,
reshape,
reshape,
setBaseColor,
setColorScheme,
setDefaultPainter,
setGUIColorSchemeMember,
setInFront, setNeedNewEdit,
setOpaque, setPainter,
setTextColor
|
Methods inherited from class java.awt.event.KeyAdapter |
keyReleased, keyTyped |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
text
private java.lang.String text
editing
private boolean editing
lastKey
private int lastKey
specificTex
protected STexture specificTex
autoFocus
private boolean autoFocus
onKeyCallback
private StelCallback onKeyCallback
onReturnKeyCallback
private StelCallback onReturnKeyCallback
FlagButton
public FlagButton(boolean state,
STexture tex,
java.lang.String specificTexName)
throws StellariumException
- Throws:
StellariumException
draw
public void draw()
-
- Overrides:
draw
in class
CheckBox
-
setAutoFocus
public void setAutoFocus(boolean b)
-
setOnKeyCallback
public void setOnKeyCallback(StelCallback c)
-
setOnReturnKeyCallback
public void setOnReturnKeyCallback(StelCallback c)
-
getText
public java.lang.String getText()
-
clearText
public void clearText()
-
setText
private void setText(java.lang.String s)
-
setEditing
public void setEditing(boolean b)
-
getLastKey
public int getLastKey()
-