jimm.datavision.gui
Class UserColumnWidget

java.lang.Object
  extended by jimm.datavision.gui.FieldWidget
      extended by jimm.datavision.gui.EditWinWidget
          extended by jimm.datavision.gui.UserColumnWidget
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 UserColumnWidget
extends EditWinWidget

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

Author:
Jim Menard, jimm@io.com

Field Summary
 
Fields inherited from class jimm.datavision.gui.EditWinWidget
editor
 
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
UserColumnWidget(SectionWidget sw, Field field)
          Constructor.
 
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

UserColumnWidget

public UserColumnWidget(SectionWidget sw,
                        Field field)
Constructor.

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

createEditor

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
Returns:
a frame (window or dialog) used to edit the widget

updateEditor

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

Overrides:
updateEditor in class EditWinWidget

getWidgetName

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

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

getEditorTitle

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

Specified by:
getEditorTitle in class EditWinWidget

getEditorLabel

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

setWidgetName

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
Parameters:
newName - the new name string