|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjimm.datavision.gui.FieldWidget
jimm.datavision.gui.EditWinWidget
public abstract class EditWinWidget
An abstract superclass for widgets that open separate windows used to edit the widget.
| Field Summary | |
|---|---|
protected javax.swing.JDialog |
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 | |
|---|---|
EditWinWidget(SectionWidget sw,
Field field)
Constructor. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.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. |
protected abstract javax.swing.JDialog |
createEditor()
Creates and returns a new frame suitable for editing this widget. |
protected abstract java.lang.String |
getEditorLabel()
Returns the name edit window's label (the prompt that goes before the text edit field). |
protected abstract java.lang.String |
getEditorTitle()
Returns the name edit window's title. |
protected abstract java.lang.String |
getWidgetName()
Returns the name string. |
void |
mouseClicked(java.awt.event.MouseEvent e)
if this is a double-click, start editing; else handle the mouse event like a normal field widget. |
void |
openEditor()
Makes our text editable and starts editing. |
protected void |
rename()
Opens a name editor. |
abstract void |
setWidgetName(java.lang.String newName)
Set editable object's name. |
protected void |
updateEditor()
Updates the editor. |
| 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 |
| Field Detail |
|---|
protected javax.swing.JDialog editor
| Constructor Detail |
|---|
EditWinWidget(SectionWidget sw,
Field field)
sw - section widget in which the field's new widget will residefield - a report field| Method Detail |
|---|
protected void addCustomPopupItems()
FieldWidget
addCustomPopupItems in class FieldWidgetpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListeneractionPerformed in class FieldWidgetpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenermouseClicked in class FieldWidgete - mouse eventpublic void openEditor()
protected abstract javax.swing.JDialog createEditor()
protected void updateEditor()
protected void rename()
protected abstract java.lang.String getWidgetName()
protected abstract java.lang.String getEditorTitle()
protected abstract java.lang.String getEditorLabel()
public abstract void setWidgetName(java.lang.String newName)
null.
newName - the new name string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||