Class builder.TextFieldNode
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class builder.TextFieldNode

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----builder.Moveable
                                   |
                                   +----builder.Node
                                           |
                                           +----builder.TextFieldNode

public class TextFieldNode
extends Node
A Node whose GUI representation is a Text Field.

Constructor Index

 o TextFieldNode(String, Map, Map, Point)
Constructor used when placing the Node onto a location on the Form.
 o TextFieldNode(String, Map, Point, Map)
Constructor used when placing the Node onto a location on the Map.

Method Index

 o getComponent()
getComponent
 o incommingAction(Node)
incommingAction Defines what to do when an Action reaches this Node through a wire.
 o paintPlaceHolder(Graphics)
paintPlaceHolder Defines the graphical representation of this Node.
 o runMode()
runMode Changes the GUI representation of this node from Editable (edit mode) to non-Editable (run mode).

Constructors

 o TextFieldNode
  public TextFieldNode(String text,
                       Map map,
                       Map form,
                       Point locForm)
Constructor used when placing the Node onto a location on the Form.
Parameters:
text - the name of the Node.
map - the Map where the NOde will paint itself onto.
form - the Panel on which the Node's GUI is placed.
locForm - the location of the Node's GUI on the Panel.
 o TextFieldNode
  public TextFieldNode(String text,
                       Map map,
                       Point locMap,
                       Map form)
Constructor used when placing the Node onto a location on the Map.
Parameters:
text - the name of the Node.
map - the Map where the NOde will paint itself onto.
locMap - the location of the Node's icon on the map.
form - the Panel on which the Node's GUI is placed.

Methods

 o runMode
  public boolean runMode()
runMode Changes the GUI representation of this node from Editable (edit mode) to non-Editable (run mode).
Overrides:
runMode in class Node
 o paintPlaceHolder
  public void paintPlaceHolder(Graphics g)
paintPlaceHolder Defines the graphical representation of this Node.
Parameters:
g - the graphics context.
Overrides:
paintPlaceHolder in class Node
 o getComponent
  public Component getComponent()
getComponent
Returns:
the Component of this Node.
Overrides:
getComponent in class Node
 o incommingAction
  public boolean incommingAction(Node caller)
incommingAction Defines what to do when an Action reaches this Node through a wire.
Parameters:
caller - node that broadcasted the action.
Returns:
true.
Overrides:
incommingAction in class Node

All Packages  Class Hierarchy  This Package  Previous  Next  Index