de.lessvoid.nifty.input
Enum NiftyInputEvent

java.lang.Object
  extended by java.lang.Enum<NiftyInputEvent>
      extended by de.lessvoid.nifty.input.NiftyInputEvent
All Implemented Interfaces:
NiftyEvent<Void>, Serializable, Comparable<NiftyInputEvent>

public enum NiftyInputEvent
extends Enum<NiftyInputEvent>
implements NiftyEvent<Void>

a nifty input event.

Author:
void

Enum Constant Summary
Activate
          activate the control.
Backspace
          backspace.
Character
          character.
ConsoleToggle
          ConsoleToggle.
Copy
          copy.
Cut
          cut.
Delete
          delete.
Escape
          escape/cancel.
MoveCursorDown
          move cursor down.
MoveCursorLeft
          move cursor left.
MoveCursorPageDown
          move cursor page down.
MoveCursorPageUp
          move cursor page up.
MoveCursorRight
          move cursor right.
MoveCursorToFirstPosition
          move cursor to first position.
MoveCursorToLastPosition
          move cursor to last position.
MoveCursorUp
          move cursor up.
NextInputElement
          goto next input element.
Paste
          paste.
PrevInputElement
          goto previous input element.
SelectAll
          select all.
SelectionEnd
          selection end.
SelectionStart
          selection start.
SubmitText
          submit text (suitable for text edit elements).
 
Method Summary
 char getCharacter()
          get character.
 void setCharacter(char characterParam)
          set additional character data.
static NiftyInputEvent valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NiftyInputEvent[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NextInputElement

public static final NiftyInputEvent NextInputElement
goto next input element.


PrevInputElement

public static final NiftyInputEvent PrevInputElement
goto previous input element.


SubmitText

public static final NiftyInputEvent SubmitText
submit text (suitable for text edit elements).


Activate

public static final NiftyInputEvent Activate
activate the control.


MoveCursorLeft

public static final NiftyInputEvent MoveCursorLeft
move cursor left.


MoveCursorRight

public static final NiftyInputEvent MoveCursorRight
move cursor right.


MoveCursorUp

public static final NiftyInputEvent MoveCursorUp
move cursor up.


MoveCursorDown

public static final NiftyInputEvent MoveCursorDown
move cursor down.


MoveCursorPageUp

public static final NiftyInputEvent MoveCursorPageUp
move cursor page up.


MoveCursorPageDown

public static final NiftyInputEvent MoveCursorPageDown
move cursor page down.


Delete

public static final NiftyInputEvent Delete
delete.


Backspace

public static final NiftyInputEvent Backspace
backspace.


MoveCursorToFirstPosition

public static final NiftyInputEvent MoveCursorToFirstPosition
move cursor to first position.


MoveCursorToLastPosition

public static final NiftyInputEvent MoveCursorToLastPosition
move cursor to last position.


SelectionStart

public static final NiftyInputEvent SelectionStart
selection start.


SelectionEnd

public static final NiftyInputEvent SelectionEnd
selection end.


SelectAll

public static final NiftyInputEvent SelectAll
select all.


Cut

public static final NiftyInputEvent Cut
cut.


Copy

public static final NiftyInputEvent Copy
copy.


Paste

public static final NiftyInputEvent Paste
paste.


Escape

public static final NiftyInputEvent Escape
escape/cancel.


Character

public static final NiftyInputEvent Character
character.


ConsoleToggle

public static final NiftyInputEvent ConsoleToggle
ConsoleToggle.

Method Detail

values

public static NiftyInputEvent[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (NiftyInputEvent c : NiftyInputEvent.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static NiftyInputEvent valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

setCharacter

public void setCharacter(char characterParam)
set additional character data.

Parameters:
characterParam - character param

getCharacter

public char getCharacter()
get character.

Returns:
character


Copyright © 2011. All Rights Reserved.