Class FormulaWidget

  extended by jimm.datavision.gui.FieldWidget
      extended by jimm.datavision.gui.EditWinWidget
          extended by jimm.datavision.gui.FormulaWidget
All Implemented Interfaces:
java.awt.dnd.DropTargetListener, java.awt.event.ActionListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener, java.util.Observer, javax.swing.event.MouseInputListener

public class FormulaWidget
extends EditWinWidget

A formula widget must be able to edit its formula's code and perform a few other formula-specific actions.

Jim Menard, jimm@io.com

Field Summary
Fields inherited from class jimm.datavision.gui.EditWinWidget
Fields inherited from class jimm.datavision.gui.FieldWidget
action, ACTION_INACTION, ACTION_MOVE, ACTION_POPPING_UP_MENU, ACTION_STRETCH_BOTTOM, ACTION_STRETCH_LEFT, ACTION_STRETCH_RIGHT, ACTION_STRETCH_TOP, actionStartedYet, aggregatesMenuItem, alignSubmenu, componentMap, formatMenuItem, GRAB_EDGE_WIDTH, MIN_SIZE, mouseChangedSelectedState, nameItem, popup, POPUP_FONT, preMoveInfo, preStretchInfo, sectionWidget, selected, showOrHide, sizeSubmenu, swingField
Constructor Summary
FormulaWidget(SectionWidget sw, Field field)
Method Summary
protected  javax.swing.JDialog createEditor()
          Creates and returns a new frame suitable for editing this widget.
protected  java.lang.String getEditorLabel()
          Returns the name edit window's label (the prompt that goes before the text edit field).
protected  java.lang.String getEditorTitle()
          Returns the name edit window's title.
protected  java.lang.String getWidgetName()
          Returns the name string.
 void setWidgetName(java.lang.String newName)
          Set editable object's name.
protected  void updateEditor()
          Updates the editor.
Methods inherited from class jimm.datavision.gui.EditWinWidget
actionPerformed, addCustomPopupItems, mouseClicked, openEditor, rename
Methods inherited from class jimm.datavision.gui.FieldWidget
actionFromPosition, align, buildPopupMenu, cursorForPosition, delete, doDelete, doDrag, doSelect, doSetVisibility, dragEnter, dragExit, dragOver, drop, dropActionChanged, enableMenuItems, finalize, findFieldWidgetOwning, getColor, getComponent, getField, getPopupNameText, getPreMoveInfo, getSectionWidget, isSelected, keyPressed, keyReleased, keyTyped, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mousePressReleaseCommon, mouseReleased, moveToSection, pickUp, putDown, resetCursor, select, setVisibilityLook, showPopupMenu, size, snapBack, startStretching, stopStretching, toggleVisibility, toString, update, usesFormat
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public FormulaWidget(SectionWidget sw,
                     Field field)

sw - section widget in which the field's new widget will reside
field - a report field
Method Detail


protected javax.swing.JDialog createEditor()
Description copied from class: EditWinWidget
Creates and returns a new frame suitable for editing this widget.

Specified by:
createEditor in class EditWinWidget
a frame (window or dialog) used to edit the widget


protected void updateEditor()
Description copied from class: EditWinWidget
Updates the editor. This method supplies default do-nothing behavior.

updateEditor in class EditWinWidget


protected java.lang.String getWidgetName()
Description copied from class: EditWinWidget
Returns the name string.

Specified by:
getWidgetName in class EditWinWidget
the name to be edited


protected java.lang.String getEditorTitle()
Description copied from class: EditWinWidget
Returns the name edit window's title.

Specified by:
getEditorTitle in class EditWinWidget


protected java.lang.String getEditorLabel()
Description copied from class: EditWinWidget
Returns the name edit window's label (the prompt that goes before the text edit field).

Specified by:
getEditorLabel in class EditWinWidget


public void setWidgetName(java.lang.String newName)
Description copied from class: EditWinWidget
Set editable object's name. The new name is guaranteed not to be null.

Specified by:
setWidgetName in class EditWinWidget
newName - the new name string