org.stellarium.ui.components
Class EditBox
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.EditBox
- All Implemented Interfaces:
- java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener,
java.awt.event.MouseWheelListener, java.util.EventListener
-
public class EditBox
- extends Button
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 |
Methods inherited from class org.stellarium.ui.components.CallbackComponent |
callbackOnClic,
callbackOnMove,
getActive, getFocus, getIsMouseOver, getPos, getPosx, getPosy, getSize, getSizeX, getSizeY, getVisible, mouseMoved,
setActive, setFocus, setOnMouseInOutCallback,
setOnPressCallback,
setPos, setPos,
setPosx, setPosy, setSize, setSize,
setSizeX, setSizey, setTexture
|
Methods inherited from class org.stellarium.ui.components.StellariumComponent |
deleteScissor, disableScissor, enableScissor, getFont, getNeedNewEdit, getType, inFront, initScissor, isIn, mouseDragged,
mouseEntered,
mouseExited,
mousePressed,
mouseReleased,
mouseWheelMoved,
reshape,
reshape,
setBaseColor,
setDefaultPainter,
setGUIColorSchemeMember,
setInFront, setNeedNewEdit,
setOpaque
|
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 |
activeEditBox
EditBox activeEditBox
EDITBOX_DEFAULT_PROMPT
final java.lang.String EDITBOX_DEFAULT_PROMPT
- See Also:
- Constant
Field Values
onReturnKeyCallback
protected StelCallback onReturnKeyCallback
onKeyCallback
protected StelCallback onKeyCallback
onAutoCompleteCallback
protected StelCallback onAutoCompleteCallback
autoComplete
protected AutoCompleteString autoComplete
history
protected History history
label
protected StelLabel label
isEditing
protected boolean isEditing
text
protected java.lang.String text
cursorPos
protected int cursorPos
lastText
protected java.lang.String lastText
prompt
protected java.lang.String prompt
lastKey
protected int lastKey
autoFocus
protected boolean autoFocus
cursorVisible
protected boolean cursorVisible
EditBox
public EditBox(java.lang.String _label,
SFontIfc font)
EditBox
public EditBox()
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
-
- Specified by:
mouseClicked
in interface java.awt.event.MouseListener
- Overrides:
mouseClicked
in class Button
-
setOnReturnKeyCallback
public void setOnReturnKeyCallback(StelCallback c)
-
setOnKeyCallback
public void setOnKeyCallback(StelCallback c)
-
setOnAutoCompleteCallback
public void setOnAutoCompleteCallback(StelCallback c)
-
draw
public void draw()
-
- Overrides:
draw
in class Button
-
setColorScheme
public void setColorScheme(SColor baseColor,
SColor textColor)
-
- Overrides:
setColorScheme
in class StellariumComponent
-
setFont
public void setFont(SFontIfc f)
-
- Overrides:
setFont
in class CallbackComponent
-
setTextColor
public void setTextColor(SColor c)
-
- Overrides:
setTextColor
in class StellariumComponent
-
setPainter
public void setPainter(Painter p)
-
- Overrides:
setPainter
in class StellariumComponent
-
keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
-
- Specified by:
keyPressed
in interface java.awt.event.KeyListener
- Overrides:
keyPressed
in class StellariumComponent
-
setVisible
public void setVisible(boolean _visible)
-
- Overrides:
setVisible
in class CallbackComponent
-
setAutoCompleteOptions
public void setAutoCompleteOptions(java.util.List<java.lang.String> _autocomplete)
-
getAutoCompleteOptions
public java.lang.String getAutoCompleteOptions()
-
getText
public java.lang.String getText()
-
setEditing
public void setEditing(boolean _b)
-
refreshLabel
public void refreshLabel()
-
setPrompt
public void setPrompt(java.lang.String p)
-
setPrompt
public void setPrompt()
-
setText
public void setText(java.lang.String _text)
-
clearText
public void clearText()
-
getDefaultPrompt
public java.lang.String getDefaultPrompt()
-
getLastKey
public int getLastKey()
-
setAutoFocus
public void setAutoFocus(boolean _b)
-
getAutoFocus
public boolean getAutoFocus()
-
cursorToNextWord
protected void cursorToNextWord()
-
cursorToPrevWord
protected void cursorToPrevWord()
-