|
||||||||||
| 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.TextFieldWidget
public class TextFieldWidget
A text field widget is a field widget that is editable.
| Field Summary | |
|---|---|
protected boolean |
changingEditState
|
protected int |
lineHeight
|
protected int |
origHeight
|
protected TypingCommand |
typingCommand
|
| 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 | |
|---|---|
TextFieldWidget(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 void |
cursorForPosition(java.awt.event.MouseEvent e)
If this field is being edited, show text cursor. |
protected void |
doSelect(boolean makeSelected)
Perform selection; if becoming deselected, ends editing. |
protected void |
endEditing()
Stores new value and bounds from self into field and makes text non-editable. |
protected java.lang.String |
getPopupNameText()
Returns string to use for popup menu's first item, the (disabled) name of this field. |
void |
keyTyped(java.awt.event.KeyEvent e)
Handles return key by expanding height of editor and backspace and delete by shrinking height if newline is deleted. |
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 |
startEditing()
Makes our text editable and starts editing. |
| Methods inherited from class jimm.datavision.gui.FieldWidget |
|---|
actionFromPosition, align, buildPopupMenu, delete, doDelete, doDrag, doSetVisibility, dragEnter, dragExit, dragOver, drop, dropActionChanged, enableMenuItems, finalize, findFieldWidgetOwning, getColor, getComponent, getField, getPreMoveInfo, getSectionWidget, isSelected, keyPressed, keyReleased, 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 int origHeight
protected int lineHeight
protected boolean changingEditState
protected TypingCommand typingCommand
| Constructor Detail |
|---|
public TextFieldWidget(SectionWidget sw,
Field field)
sw - section widget in which the field's new widget will residefield - a report field| Method Detail |
|---|
protected java.lang.String getPopupNameText()
FieldWidget
getPopupNameText in class FieldWidgetprotected 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 startEditing()
protected void endEditing()
protected void doSelect(boolean makeSelected)
doSelect in class FieldWidgetmakeSelected - new selection stateprotected void cursorForPosition(java.awt.event.MouseEvent e)
cursorForPosition in class FieldWidgete - a mouse eventpublic void keyTyped(java.awt.event.KeyEvent e)
keyTyped in interface java.awt.event.KeyListenerkeyTyped in class FieldWidgete - key event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||