Class mheg5.OBJ.EntryField
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class mheg5.OBJ.EntryField

java.lang.Object
   |
   +----mheg5.UTL.ListNode
           |
           +----mheg5.REF.ObjectRef
                   |
                   +----mheg5.OBJ.Root
                           |
                           +----mheg5.OBJ.Ingredient
                                   |
                                   +----mheg5.OBJ.Presentable
                                           |
                                           +----mheg5.OBJ.Visible
                                                   |
                                                   +----mheg5.OBJ.Text
                                                           |
                                                           +----mheg5.OBJ.EntryField

public class EntryField
extends Text
implements AIEntryField, AIInteractible

Variable Index

 o CharList
Own exchanged attribute CharList
 o EntryPoint
Own internal attribute EntryPoint
 o eventEntryFieldFull
 o eventInteractionCompleted
 o ia
 o INPUT_TYPE_ALPHA
 o INPUT_TYPE_ANY
 o INPUT_TYPE_LISTED
 o INPUT_TYPE_NUMERIC
 o InputType
Own exchanged attribute InputType
 o MaxLength
Own exchanged attribute MaxLength
 o ObscuredInput
Own exchanged attribute ObscuredInput
 o OverwriteMode
Own internal attribute OverwriteMode

Constructor Index

 o EntryField()
Constructor for a EntryField Object

Method Index

 o Activation()
Activation
 o CheckEvent(MhegEvent)
Check the events of this class
 o Deactivation()
Deactivation
 o Destruction()
Destruction
 o DisplayFeedback(boolean, Color)
DisplayFeedback
(from AIInteractible)
 o GetEntryPoint(IntegerVariable)
GetEntryPoint (EntryPointVar)
 o GetHighlightStatus(BooleanVariable)
Get Highlight status
(from AIInteractible)
 o GetInteractionStatus(BooleanVariable)
Get interaction status
(from AIInteractible)
 o GetOverwriteMode(BooleanVariable)
GetOverwrite­Mode (OverwriteMode­Var)
 o Interaction(int, int)
Internal behaviour Interaction
 o NotifyCursorEnter()
Notify cursor enter
(from AIInteractible)
 o NotifyCursorLeave()
Notify cursor leave
(from AIInteractible)
 o NotifyRawInputOldEvent(Event)
commented out for jdk102 adjustment: public void NotifyRawInput( int rawCode , KeyEvent key_event) { if(key_event == null) return; // todo: handle information in InputType (== INPUT_TYPE_ANY) // todo: handle Max_Length // find the char of the key: char keyChar = key_event.getKeyChar(); int keyCode = key_event.getKeyCode(); String keyText = key_event.getKeyText(keyCode); //System.out.println(" EntryField.NotifyRawInput{" + // ObjectIdentifier.objectNumber + // "}(keyEvent.keyText = '" + // keyText + "')"); // check if presentable really exists.
 o Preparation()
 o RegisterLink(Link)
 o sendEntryFieldFullEvent()
 o SetEntryPoint(int)
SetEntryPoint (NewEntryPoint)
 o SetHighlightStatus(boolean)
Set Highlight status
(from AIInteractible)
 o SetInteractionStatus(boolean)
Set up interaction status
(from AIInteractible)
 o SetInternalAttributes()
Setup of internal attributes of this class
 o SetOverwriteMode(boolean)
SetOverwrite­Mode (NewOverwrite­Mode)

Variables

 o InputType
  public int InputType
Own exchanged attribute InputType
 o CharList
  public String CharList
Own exchanged attribute CharList
 o ObscuredInput
  public boolean ObscuredInput
Own exchanged attribute ObscuredInput
 o MaxLength
  public int MaxLength
Own exchanged attribute MaxLength
 o EntryPoint
  public int EntryPoint
Own internal attribute EntryPoint
 o OverwriteMode
  public boolean OverwriteMode
Own internal attribute OverwriteMode
 o eventInteractionCompleted
  protected final static MhegEvent eventInteractionCompleted
 o eventEntryFieldFull
  protected final static MhegEvent eventEntryFieldFull
 o INPUT_TYPE_ALPHA
  public final static int INPUT_TYPE_ALPHA
 o INPUT_TYPE_NUMERIC
  public final static int INPUT_TYPE_NUMERIC
 o INPUT_TYPE_ANY
  public final static int INPUT_TYPE_ANY
 o INPUT_TYPE_LISTED
  public final static int INPUT_TYPE_LISTED
 o ia
  public Interactible ia

Constructors

 o EntryField
  public EntryField()
Constructor for a EntryField Object

Methods

 o RegisterLink
  public void RegisterLink(Link link)
Overrides:
RegisterLink in class Root
 o CheckEvent
  public void CheckEvent(MhegEvent event)
Check the events of this class
Parameters:
event - the MhegEvent
Overrides:
CheckEvent in class Root
See Also:
MhegEvent
 o Interaction
  public void Interaction(int mouse_x,
                          int mouse_y)
Internal behaviour Interaction
 o Preparation
  public void Preparation()
Overrides:
Preparation in class Text
 o Destruction
  public void Destruction()
Destruction
Overrides:
Destruction in class Text
 o Activation
  public void Activation()
Activation
Overrides:
Activation in class Text
 o Deactivation
  public void Deactivation()
Deactivation
Overrides:
Deactivation in class Text
 o SetInternalAttributes
  public void SetInternalAttributes()
Setup of internal attributes of this class
Overrides:
SetInternalAttributes in class Text
 o SetOverwriteMode
  public void SetOverwriteMode(boolean bv)
SetOverwrite­Mode (NewOverwrite­Mode)
 o GetOverwriteMode
  public void GetOverwriteMode(BooleanVariable bv)
GetOverwrite­Mode (OverwriteMode­Var)
 o SetEntryPoint
  public void SetEntryPoint(int intvar)
SetEntryPoint (NewEntryPoint)
 o GetEntryPoint
  public void GetEntryPoint(IntegerVariable intvar)
GetEntryPoint (EntryPointVar)
 o SetInteractionStatus
  public void SetInteractionStatus(boolean newStatus)
Set up interaction status
(from AIInteractible)
 o GetInteractionStatus
  public void GetInteractionStatus(BooleanVariable statusVar)
Get interaction status
(from AIInteractible)
 o SetHighlightStatus
  public void SetHighlightStatus(boolean newStatus)
Set Highlight status
(from AIInteractible)
 o GetHighlightStatus
  public void GetHighlightStatus(BooleanVariable statusVar)
Get Highlight status
(from AIInteractible)
 o DisplayFeedback
  public void DisplayFeedback(boolean highlight_flag,
                              Color highlightRefColour)
DisplayFeedback
(from AIInteractible)
 o NotifyCursorEnter
  public void NotifyCursorEnter()
Notify cursor enter
(from AIInteractible)
 o NotifyCursorLeave
  public void NotifyCursorLeave()
Notify cursor leave
(from AIInteractible)
 o NotifyRawInputOldEvent
  public void NotifyRawInputOldEvent(Event event)
commented out for jdk102 adjustment: public void NotifyRawInput( int rawCode , KeyEvent key_event) { if(key_event == null) return; // todo: handle information in InputType (== INPUT_TYPE_ANY) // todo: handle Max_Length // find the char of the key: char keyChar = key_event.getKeyChar(); int keyCode = key_event.getKeyCode(); String keyText = key_event.getKeyText(keyCode); //System.out.println(" EntryField.NotifyRawInput{" + // ObjectIdentifier.objectNumber + // "}(keyEvent.keyText = '" + // keyText + "')"); // check if presentable really exists. if (po == null) { System.out.println(" Warning: EntryField.NotifyRawInput()"+ " po == null !"); return; } switch (keyCode) { case KeyEvent.VK_ENTER: { // return pressed. // terminate interaction ia.SetInteractionStatus( false ); // copy information from PEntryfield(->PText) to EntryField(->Text) textData = ((PEntryField)po).getTextData(); System.out.println(" EntryField.NotifyRawInput()"+ " on return got: " + textData ); break; } case 127: // KeyEvent.VK_BACK_SPACE) { // delete pressed. int offset = ((PEntryField)po).deleteCharacter(EntryPoint, OverwriteMode); EntryPoint += offset; break; } case KeyEvent.VK_LEFT: { // cursor - left int offset = ((PEntryField)po).leftCharacter(EntryPoint, OverwriteMode); EntryPoint += offset; break; } case KeyEvent.VK_RIGHT: { // cursor - left int offset = ((PEntryField)po).rightCharacter(EntryPoint, OverwriteMode); EntryPoint += offset; break; } case KeyEvent.VK_UP: { // cursor - up int offset = ((PEntryField)po).upCharacter(EntryPoint, OverwriteMode); EntryPoint += offset; break; } case KeyEvent.VK_DOWN: { // cursor - down int offset = ((PEntryField)po).downCharacter(EntryPoint, OverwriteMode); EntryPoint += offset; break; } default: if (keyChar != KeyEvent.VK_UNDEFINED) { // normal character pressed. String add_char = "" + keyChar; // send it to PEntryField: int offset = ((PEntryField)po).addCharacter(add_char, EntryPoint, OverwriteMode); EntryPoint += offset; } } // update what's on the screen Global.mh5Display.DisplayItem( (Visible) this ); }
 o sendEntryFieldFullEvent
  public void sendEntryFieldFullEvent()

All Packages  Class Hierarchy  This Package  Previous  Next  Index