ewe.ui
Class InputStack
java.lang.Object
ewe.ui.ControlBase
ewe.ui.Control
ewe.ui.Container
ewe.ui.Canvas
ewe.ui.Panel
ewe.ui.CellPanel
ewe.ui.InputStack
- All Implemented Interfaces:
- CellConstants, ControlConstants, EventListener, ImageRefresher, IScroll, LayoutManager, ScrollClient, TimerProc, UIConstants
- public class InputStack
- extends CellPanel
| Fields inherited from class ewe.ui.Panel |
all, backgroundImage, calculated, childListeners, defaultAddToMeCellConstraints, defaultTags, grid, lastAdded, layoutManager, made, noInsets, stretchFirstColumn, stretchFirstRow, stretchLastColumn, stretchLastRow, titleGap |
| Fields inherited from class ewe.ui.Control |
_debug, backGround, beforeRemoved, borderColor, borderStyle, borderWidth, children, columns, constraints, DoPaintMethod, dragging, dragResolution, dragTime, exitKeys, fieldTransfer, font, foreGround, haveNativePaint, height, holdDownPause, holdTick, hotKey, image, lastSelected, listeners, maxHeight, maxWidth, menuState, minHeight, minWidth, modifiers, MyClass, name, next, np, parent, penStatus, popupSound, popupSoundClip, preferredHeight, preferredWidth, prev, prompt, promptControl, rows, ss, standardBorder, standardEdge, startDragResolution, tags, tail, text, toolTip, width, x, y |
| Fields inherited from class ewe.ui.ControlBase |
clipItems, clipObject, clipOwner, curPoint, currentPenEvent, debugControl, debugFlag, DidHoldDown, doubleBuffer, doubleClickTime, firstPress, globalDrawFlat, globalEditable, globalEnabled, globalPalmStyle, globalSmallControls, GotPenDown, PenIsOn, pressPoint, TAG_LAST_USER_DATA, TAG_USER_DATA, TAKE_FIRST_PRESS, unnamed, useNativeTextInput |
| Fields inherited from interface ewe.ui.CellConstants |
BORDER, BOTTOM, CELLFLAG, CELLMASK, CENTER, CONTROLMASK, DONTCHANGE, DONTFILL, DONTSTRETCH, EAST, FILL, FIXEDSIZE, GROW, HCENTER, HCONTRACT, HEXPAND, HFILL, HGROW, HSHRINK, HSTRETCH, INITIALLY_CLOSED, INITIALLY_MINIMIZED, INITIALLY_PREFERRED_SIZE, INSETS, LEFT, MAXIMUMSIZE, MINIMUMSIZE, NORTH, NORTHEAST, NORTHWEST, PREFERREDSIZE, RECT, RIGHT, SHRINK, SOUTH, SOUTHEAST, SOUTHWEST, SPAN, STRETCH, TEXTSIZE, TOP, VCENTER, VCONTRACT, VEXPAND, VFILL, VGROW, VSHRINK, VSTRETCH, WEST |
| Fields inherited from interface ewe.ui.UIConstants |
BDR_DOTTED, BDR_INNER, BDR_NOBORDER, BDR_OUTER, BDR_OUTLINE, BDR_RAISEDINNER, BDR_RAISEDOUTER, BDR_SUNKENINNER, BDR_SUNKENOUTER, BF_BOTTOM, BF_BOTTOMLEFT, BF_BOTTOMRIGHT, BF_BUTTON, BF_DIAGONAL, BF_DIAGONAL_ENDBOTTOMLEFT, BF_DIAGONAL_ENDBOTTOMRIGHT, BF_DIAGONAL_ENDTOPLEFT, BF_DIAGONAL_ENDTOPRIGHT, BF_EXACT, BF_FLAT, BF_LEFT, BF_MIDDLE, BF_MONO, BF_PALM, BF_RECT, BF_RIGHT, BF_SOFT, BF_SQUARE, BF_TOP, BF_TOPLEFT, BF_TOPRIGHT, EDGE_BUMP, EDGE_ETCHED, EDGE_RAISED, EDGE_SUNKEN |
| Fields inherited from interface ewe.ui.ControlConstants |
All, AlwaysEnabled, AlwaysRecalculateSizes, ByDeferredMouse, ByDeferredPen, ByFrameChange, ByKeyboard, ByMouse, ByPen, ByRequest, CalculatedSizes, Disabled, DisablePopupMenu, DisplayOnly, Down, DrawFlat, Flag, ForceResize, HasData, Invisible, KeepImage, KeepSIP, Left, MakeMenuAtLeastAsWide, Maximize, Minimize, MouseSensitive, NoFocus, NotAnEditor, NotEditable, PaintDataOnly, PaintOutsideOnly, PenTransparent, PreferredSizeOnly, Right, SendUpKeyEvents, SendUpPenEvents, ShowSIP, ShrinkToNothing, SmallControl, SpecialBackground, TakeControlEvents, TakesKeyFocus, Transparent, Up, WantDrag, WantHoldDown |
|
Method Summary |
void |
add(Control c,
String prompt)
|
mButton |
addButton(String prompt)
|
mCheckBox |
addCheckBox(String prompt)
|
mCheckBox |
addCheckBox(String prompt,
CheckBoxGroup group,
boolean state)
|
void |
addChecks(Editor ed,
String promptsAndFields,
boolean exclusive)
|
void |
addChecks(Editor ed,
String promptsAndFields,
boolean exclusive,
boolean checkOnLeft)
|
CheckBoxGroup |
addChecks(String prompt,
String[] choices,
int columns)
|
mChoice |
addChoice(String prompt)
|
mChoice |
addChoice(String prompt,
String[] choices,
int initialChoice)
|
protected mComboBox |
addComboBox(mComboBox cb,
String p)
|
mComboBox |
addComboBox(String prompt)
|
mComboBox |
addComboBox(String prompt,
String[] choices,
int initialChoice)
|
mComboBox |
addComboBox(String prompt,
String[] choices,
String initialChoice)
|
mInput |
addInput(String prompt,
String initial)
|
void |
addInputFields(Editor ed,
String fields)
Add a set of inputs given the field names. |
void |
addInputs(Editor ed,
String promptsAndFields)
|
InputStack |
addInputStack(String prompt,
int columns)
|
mLabel |
addLabel(String prompt)
|
CellPanel |
addPanel(String prompt,
boolean spanBoth)
|
mTextArea |
addTextArea(String prompt,
int rows,
int columns,
boolean scrollable)
|
static String |
appendToPrompt(String promptWithHotkey,
String moreText)
|
protected Control |
getLabel(String text)
|
void |
make(boolean remake)
This is used to "make" the control before being displayed. |
static String |
nameToPrompt(String name)
This converts a name with underscores to a prompt with capital letters and spaces where
the underscores were. |
protected void |
popup(mInput what)
|
| Methods inherited from class ewe.ui.Panel |
add, addChildListener, addDirectly, addLast, addLast, addNext, addNext, addNext, doBackground, doBorder, endRow, getControlTag, getPreferredSize, getSubControls, isEmpty, layout, remove, removeChildListener, sendToChildListeners, setText |
| Methods inherited from class ewe.ui.Canvas |
canGo, canScreenScroll, checkScrolls, doScroll, fixOrigin, getActual, getBuffer, getCurrent, getDisplayedSize, getMySize, getPercent, getScrollablePanel, getScrollClient, getVisible, getVisibleArea, needScrollBar, onScroll, onSetOrigin, reduceClip, scroll, scroll, scrollToVisible, setOrigin, updateScrollServer |
| Methods inherited from class ewe.ui.Container |
_paintChildren, add, containerHasFocus, dismantle, dismantle, doHotKey, findChild, focusFirst, focusFirst, focusOnContainer, focusOnData, getChildren, getChildrenBackwards, getFirstFocus, getNextKeyFocus, gotFocus, lostFocus, repaintDataNow, takeFocus, takePromptControl |
| Methods inherited from class ewe.ui.Control |
acceptsData, activate, addListener, addTimer, amOnTopFrame, calculateTextSize, cancelCut, cancelHoldDown, canEdit, chainDataChange, change, checkClipboardOperations, checkExitKey, checkMenu, checkMenuKey, checkModifiers, checkPenTransparent, clearTag, clipboardToString, clipboardTransfer, closeMenu, contains, contains, createGraphics, dataAccepted, dataBeingRemoved, dataDraggedOff, dataDraggedOver, dataDraggedOver, dataDroppedOn, dataTransferCancelled, deactivate, defaultTo, doAction, doActionKey, doMenu, dontAcceptDrop, doPaint, doPaintChildren, doPaintChildren, doPaintChildren, doPaintData, doPaintData, doShowMenu, dragged, exitEntry, fillBackground, formClosing, fromClipboard, fromField, fromField, getAllDescendants, getAllSubControls, getBackground, getClipboardMenu, getClipObject, getControlBuffer, getControlBuffer, getDataRect, getDataToCopy, getDataToDragAndDrop, getDim, getDisplayText, getDragAndDropContext, getFont, getFontMetrics, getFontMetrics, getForeground, getFrame, getFrameOrContainer, getGraphics, getImage, getLastSelected, getLocation, getMaximumSize, getMenu, getMinimumSize, getModifiers, getNext, getParent, getPasswordCharacter, getPosInFrame, getPosInParent, getPreferredSize, getPrompt, getPromptText, getRect, getRect, getServer, getSize, getSizes, getTag, getText, getToolTip, getWindow, hasModifier, hasPopupFormAttached, hasTag, inheritModifiers, isChildOf, isModal, isOnMe, isSomeonesHotKey, makeFrameTopMost, makeHot, menuIsActive, modify, modifyAll, modifyAll, notifyAction, notifyDataChange, notifyDataChange, notNative_doPaintChildren, oldButWorksDoPaintChildren, oldPaintChildren, oldPostEvent, onControlEvent, onKeyEvent, onLabelPenEvent, onPaint, onPenEvent, paintBackground, paintChildren, penClicked, penDoubleClicked, penHeld, penPressed, penReleased, penRightReleased, popupBeep, popupMenuClosed, popupMenuEvent, popupMenuEvent, postEvent, recalculatePreferredSize, redisplay, refresh, removeListener, removeTimer, repaint, repaintNow, repaintNow, repaintNow, requestPaint, requestResizeTo, resetRect, restore, scrollAndRepaint, sendToListeners, set, setBorder, setCell, setClipObject, setControl, setCursor, setFixedSize, setFont, setHotKey, setHotKey, setLocation, setMaximumSize, setMenu, setMinimumSize, setPreferredSize, setPromptControl, setRect, setRect, setServer, setTag, setTags, setTextSize, setToolTip, show, shown, standardOnKeyEvent, startDragAndDrop, startDragAndDrop, startDragging, stopDragging, takeData, takeFromClipboard, testDim, ticked, toClipboard, toField, toField, toString, toTextData, transferPenPress, transferPenPress, tryDragAndDrop, tryNext, tryStartMenu, updateData, willAcceptDrop, willShowFrame |
doPopupInput
public boolean doPopupInput
doubleLined
public boolean doubleLined
inputLength
public int inputLength
controls
public Vector controls
prompts
public Vector prompts
InputStack
public InputStack()
make
public void make(boolean remake)
- Description copied from class:
Control
- This is used to "make" the control before being displayed. This is usually only
overridden by containers.
- Overrides:
make in class CellPanel
add
public void add(Control c,
String prompt)
appendToPrompt
public static String appendToPrompt(String promptWithHotkey,
String moreText)
getLabel
protected Control getLabel(String text)
popup
protected void popup(mInput what)
addComboBox
protected mComboBox addComboBox(mComboBox cb,
String p)
addLabel
public mLabel addLabel(String prompt)
addInput
public mInput addInput(String prompt,
String initial)
addCheckBox
public mCheckBox addCheckBox(String prompt)
addCheckBox
public mCheckBox addCheckBox(String prompt,
CheckBoxGroup group,
boolean state)
addChoice
public mChoice addChoice(String prompt)
addChoice
public mChoice addChoice(String prompt,
String[] choices,
int initialChoice)
addButton
public mButton addButton(String prompt)
addInputStack
public InputStack addInputStack(String prompt,
int columns)
addPanel
public CellPanel addPanel(String prompt,
boolean spanBoth)
addTextArea
public mTextArea addTextArea(String prompt,
int rows,
int columns,
boolean scrollable)
addComboBox
public mComboBox addComboBox(String prompt)
addComboBox
public mComboBox addComboBox(String prompt,
String[] choices,
int initialChoice)
addComboBox
public mComboBox addComboBox(String prompt,
String[] choices,
String initialChoice)
addChecks
public CheckBoxGroup addChecks(String prompt,
String[] choices,
int columns)
nameToPrompt
public static String nameToPrompt(String name)
- This converts a name with underscores to a prompt with capital letters and spaces where
the underscores were.
- Parameters:
name -
- Returns:
- The converted name.
addInputs
public void addInputs(Editor ed,
String promptsAndFields)
addInputFields
public void addInputFields(Editor ed,
String fields)
- Add a set of inputs given the field names. The prompts will be created from the field names.
- Parameters:
ed - An editor to add the fields to.fields - The field names - the prompts will be derived from them.
addChecks
public void addChecks(Editor ed,
String promptsAndFields,
boolean exclusive)
addChecks
public void addChecks(Editor ed,
String promptsAndFields,
boolean exclusive,
boolean checkOnLeft)