|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.ui.ControlBase
ewe.ui.Control
ewe.ui.ChoiceControl
ewe.ui.Menu
| Field Summary | |
boolean |
autoSelectFirst
If this is true then when the menu is first displayed, the first item will be selected. |
static int |
border3D
|
static Color |
defaultBackground
|
static int |
defaultUseScrollBarSize
|
boolean |
dontSearchForKeys
If this is true then when you press a key, each item will not be searched to see if the key relates to that item. |
boolean |
followPen
|
boolean |
keepFrame
If this is true then the same Frame will be used for the Menu everytime it is shown. |
protected CarrierFrame |
myFrame
|
protected Menu |
parentMenu
|
PopupController |
popupController
|
protected int |
pressedItem
|
static boolean |
use3DPopup
|
int |
useScrollBarSize
If this value is -1, then the defaultUseScrollBarSize will be used, if it is zero then scroll bars will never be used and if it is greater than zero it specifies how many items required to switch from up/down button scrolling to using a full scroll bar. |
protected boolean |
wasSelected
|
| Fields inherited from class ewe.ui.ChoiceControl |
blockColor, blockSelected, calculateWidth, clipBuffer, container, dimRect, displayRows, dontAutoScroll, dropDownButton, dummyItem, firstItem, INDENT_ITEM_FLAG, indentDropItems, innerRect, isAList, isSingleLine, itemHeight, items, newClip, notifyDataChangeOnSelect, noWrapAround, selectedIndex, shortenItems, spacing, useMenuItems, xOffset, xShift |
| 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.IScroll |
Higher, Horizontal, Lower, OPTION_INDICATOR_ONLY, PageHigher, PageLower, ScrollHigher, ScrollLower, TrackTo, Vertical |
| 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.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.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 |
| Fields inherited from interface ewe.fx.ImageRefresher |
KEEP_VISIBLE |
| Constructor Summary | |
Menu()
|
|
Menu(Menu other)
Create a Menu that is a copy of the other menu. |
|
Menu(MenuItem[] items,
String title)
|
|
Menu(String[] items,
String title)
|
|
| Method Summary | |
protected boolean |
allowNotOnMeSelection()
|
boolean |
canGo(int orientation,
int direction,
int position)
|
protected boolean |
canScreenScroll()
|
void |
close()
|
void |
doActionKey(int key)
|
protected boolean |
doDropMenu(Menu who)
|
boolean |
doMenu(Point p)
This is a request to display a menu based on the pen being held or the mouse being right clicked on the Control. |
void |
doScroll(int which,
int action,
int value)
|
void |
dragged(DragContext dc)
This is called during the drag operation. |
void |
exec(Control owner,
Point where,
EventListener listener)
|
int |
getActual(int which)
|
CarrierFrame |
getCarrierFrame(Control owner,
int maxWidth,
int maxHeight,
boolean shrinkWidth,
boolean shrinkHeight,
Frame parent)
|
CarrierFrame |
getCarrierFrame(Control owner,
int maxWidth,
int maxHeight,
boolean shrinkWidth,
boolean shrinkHeight,
Frame parent,
String title)
|
int |
getCurrent(int which)
|
Rect |
getItemRect(int idx,
Rect dest)
|
protected int |
getMenuWidth()
|
Rect |
getTextRect(int idx,
Rect dest)
|
int |
getVisible(int which,
int forSize)
|
boolean |
needScrollBar(int which,
int forSize)
|
protected void |
noMenu()
|
void |
onEvent(Event ev)
|
void |
onKeyEvent(KeyEvent ev)
|
void |
onPenEvent(PenEvent ev)
Called to handle an incoming PenEvent. |
void |
penPressed(Point p)
Called when the Pen or Mouse button is pressed on the control. |
void |
penReleased(Point p)
Called when the Pen or Mouse button is released on the control. |
void |
postEvent(Event ev)
|
void |
postEventNormally(Event ev)
|
protected void |
pressedNewSelected(int oldSel)
|
protected void |
selectNewItem(Point p)
|
boolean |
trySubMenu()
|
void |
updateItems()
This updates the control to new choices added and then refreshes it on screen. |
protected int |
whichItem(int x,
int y)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode |
| Methods inherited from interface ewe.ui.ScrollClient |
getServer, setServer |
| Field Detail |
public static boolean use3DPopup
public static int border3D
protected Menu parentMenu
public boolean followPen
public PopupController popupController
public static int defaultUseScrollBarSize
public static Color defaultBackground
public boolean autoSelectFirst
public boolean dontSearchForKeys
public int useScrollBarSize
protected int pressedItem
protected boolean wasSelected
public boolean keepFrame
protected CarrierFrame myFrame
| Constructor Detail |
public Menu()
public Menu(Menu other)
other - The other menu
public Menu(String[] items,
String title)
public Menu(MenuItem[] items,
String title)
| Method Detail |
protected int getMenuWidth()
getMenuWidth in class ChoiceControl
public Rect getTextRect(int idx,
Rect dest)
protected int whichItem(int x,
int y)
public Rect getItemRect(int idx,
Rect dest)
protected boolean allowNotOnMeSelection()
protected void selectNewItem(Point p)
protected void pressedNewSelected(int oldSel)
public void penPressed(Point p)
ControlWithin this method you can use the Control.currentPenEvent value to find out more about the PenEvent that caused this - including any modifiers (e.g. SHIFT keys) or determine if the left or right mouse button was pressed.
penPressed in class Controlp - The point on the Control where the pen was pressed.public void dragged(DragContext dc)
Control
dragged in class Controldc - The DragContext for the dragging operation.public void onPenEvent(PenEvent ev)
Control
onPenEvent in class Controlev - The incoming PenEvent.public void penReleased(Point p)
ControlWithin this method you can use the Control.currentPenEvent value to find out more about the PenEvent that caused this - including any modifiers (e.g. SHIFT keys) or determine if the left or right mouse button was pressed.
penReleased in class Controlp - The point on the Control where the pen was released.public void onKeyEvent(KeyEvent ev)
onKeyEvent in class Controlpublic boolean trySubMenu()
public void doActionKey(int key)
doActionKey in class ChoiceControl
public CarrierFrame getCarrierFrame(Control owner,
int maxWidth,
int maxHeight,
boolean shrinkWidth,
boolean shrinkHeight,
Frame parent)
public CarrierFrame getCarrierFrame(Control owner,
int maxWidth,
int maxHeight,
boolean shrinkWidth,
boolean shrinkHeight,
Frame parent,
String title)
protected boolean doDropMenu(Menu who)
public void postEvent(Event ev)
postEvent in class Controlpublic void postEventNormally(Event ev)
protected void noMenu()
public void onEvent(Event ev)
onEvent in interface EventListeneronEvent in class Controlprotected boolean canScreenScroll()
public void doScroll(int which,
int action,
int value)
doScroll in interface ScrollClientpublic int getActual(int which)
getActual in interface ScrollClient
public int getVisible(int which,
int forSize)
getVisible in interface ScrollClientpublic int getCurrent(int which)
getCurrent in interface ScrollClient
public boolean needScrollBar(int which,
int forSize)
needScrollBar in interface ScrollClient
public boolean canGo(int orientation,
int direction,
int position)
canGo in interface ScrollClientpublic void updateItems()
ChoiceControl
updateItems in class ChoiceControlpublic boolean doMenu(Point p)
Control
doMenu in class Controlp - The point where the pen was pressed or held.
public void exec(Control owner,
Point where,
EventListener listener)
public void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||