Method Summary |
|
protected int | actionFromPosition(MouseEvent e) Given a mouse event, returns the ACTION_* constant
associated with the mouse position within the field. |
public void | actionPerformed(ActionEvent e) Performs some action based on the action command string (the menu
item text). |
protected void | addCustomPopupItems() This hook lets subclasses customize the popup menu. |
public void | align(int which, Field prototype) Align this field in relation to prototype. |
protected void | buildPopupMenu() Builds the popup menu. |
protected void | cursorForPosition(MouseEvent e) If this field is selected, sets the cursor based on the current mouse
position in the widget. |
protected void | delete() Asks the window delete this field and all selected fields. |
public void | doDelete() Deletes this field from its section. |
void | doDrag(int action, java.awt.Point mouseScreenPos) Performs a drag or a stretch. |
void | doSelect(boolean makeSelected) Performs whatever is necessary to select or deselct self. |
public void | doSetVisibility(boolean newVisibility) Sets the visiblity of this field. |
public void | dragEnter(DropTargetDragEvent e) |
public void | dragExit(DropTargetEvent e) |
public void | dragOver(DropTargetDragEvent e) |
public void | drop(DropTargetDropEvent e) Handles drop of a dragged field. |
public void | dropActionChanged(DropTargetDragEvent e) |
protected void | enableMenuItems() Enables or disables popup menu items based on field and window state. |
protected void | finalize() |
static FieldWidget | findFieldWidgetOwning(Object c) Returns the field widget that owns a particular visual component. |
Color | getColor() |
public JComponent | getComponent() |
public Field | getField() |
protected String | getPopupNameText() Returns string to use for popup menu's first item, the (disabled)
name of this field. |
public PreMoveInfo | getPreMoveInfo() Returns the information we saved before starting to move this widget. |
public SectionWidget | getSectionWidget() Returns the section widget containing this field widget. |
boolean | isSelected() Returns true if the field is selected. |
public void | keyPressed(KeyEvent ke) |
public void | keyReleased(KeyEvent ke) |
public void | keyTyped(KeyEvent ke) |
public void | mouseClicked(MouseEvent e) If the user is placing a new text field, pass it on to the section
widget; else do nothing. |
public void | mouseDragged(MouseEvent e) Asks section to drag (move, resize) all selected widgets together. |
public void | mouseEntered(MouseEvent e) Changes cursor if this widget is selected. |
public void | mouseExited(MouseEvent e) Changes cursor if this widget is selected. |
public void | mouseMoved(MouseEvent e) Changes cursor if this widget is selected. |
protected boolean | mousePressReleaseCommon(MouseEvent e) Performs checks and behaviors common to both mouse presses and mouse
release events. |
public void | mousePressed(MouseEvent e) When the mouse is pressed, do the Right Thing(tm). |
public void | mouseReleased(MouseEvent e) When the mouse is released and we have been dragging this field,
drop this one and all others that are being dragged. |
public void | moveToSection(SectionWidget sw) Moves both field view and model to a new section. |
public void | pickUp(java.awt.Point mouseScreenPos) Prepares for movement by remembering where we are now and removing
ourself from the section view widget (but not the section model). |
public void | putDown(SectionWidget sw) Place this field into a section widget. |
protected void | resetCursor() Resets the cursor to its default. |
void | select(boolean deselectOthers) Selects this field. |
protected void | setVisibilityLook() Sets the look of the field based on the current visiblity flag value. |
protected void | showPopupMenu(MouseEvent e) Displays popup menu, after enabling/disabling the appropriate items. |
public void | size(int which, Field prototype) Resize this field in relation to prototype. |
void | snapBack() Move back to original location in original section widget. |
public void | startStretching(java.awt.Point mouseScreenPos) Prepares for stretching by creating a PreStretchInfo . |
public void | stopStretching() Stop stretching. |
public String | toString() |
void | toggleVisibility() Toggles the visiblity of this field and all selected fields. |
public void | update(Observable obj, Object arg) |
public boolean | usesFormat() Returns true if this field can be formatted. |