|
||||||||||
| 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
ewe.ui.BasicList
ewe.ui.mList
| Field Summary |
| Fields inherited from class ewe.ui.BasicList |
amScrolling, multiSelect, OPTION_CURSOR_EXIT_DOWN, OPTION_CURSOR_EXIT_LEFT, OPTION_CURSOR_EXIT_RIGHT, OPTION_CURSOR_EXIT_UP, OPTION_SELECT_FIRST_ON_KEY_FOCUS, options, penSelectMode |
| Fields inherited from class ewe.ui.Menu |
autoSelectFirst, border3D, defaultBackground, defaultUseScrollBarSize, dontSearchForKeys, followPen, keepFrame, myFrame, parentMenu, popupController, pressedItem, use3DPopup, useScrollBarSize, 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 | |
mList(int rows,
int columns,
boolean multi)
|
|
| Method Summary | |
MenuItem |
addItem(String what)
|
protected void |
calculateSizes()
Override this to calculate the preferred, minimum and maximum size of your control. |
int |
countSelectedIndexes()
Returns the number of items that are currently selected. |
boolean |
deleteSelection()
|
protected void |
doPaintData(Graphics gr)
Repaint the "data" part of the Control. |
Object |
getListItem(int index)
Get the Object at the list index. |
Object[] |
getListItems()
Get all the list items. |
ScrollablePanel |
getScrollablePanel()
|
int |
getSelectedIndex(int selectedIndexIndex)
This returns one of the selected index. |
int[] |
getSelectedIndexes()
Get a list of all the currently selected items as an array of indexes. |
Object |
getSelection()
|
boolean |
hasSelection()
|
boolean |
isSelected(int index)
Checks if an item is selected. |
boolean |
noSelection()
|
protected void |
paintBox(Graphics g)
|
void |
postEvent(Event ev)
|
boolean |
replaceSelection(Object clipboard)
|
void |
selectAll(boolean select)
Use this to clear the selection or to select all the items. |
void |
selectItem(int index,
boolean selected)
|
void |
selectItem(String label)
|
void |
setListItems(Object[] items)
Set the list items. |
void |
setSelectedIndexes(int[] indexes)
Set which indexes should be selected. |
| Methods inherited from class ewe.ui.BasicList |
allowNotOnMeSelection, countListItems, dragged, gotFocus, onKeyEvent, penClicked, penDoubleClicked, penPressed, penReleased, pressedNewSelected, releasedOnNothing, selectAndView |
| Methods inherited from class ewe.ui.Menu |
canGo, canScreenScroll, close, doActionKey, doDropMenu, doMenu, doScroll, exec, getActual, getCarrierFrame, getCarrierFrame, getCurrent, getItemRect, getMenuWidth, getTextRect, getVisible, needScrollBar, noMenu, onEvent, onPenEvent, postEventNormally, selectNewItem, trySubMenu, updateItems, whichItem |
| Methods inherited from class ewe.ui.ChoiceControl |
addItem, addItems, addSection, centerSelected, changeItem, changeModifiers, checkOnlyOne, deleteItem, doPaint, findItem, findKeyed, getBlockColor, getDataRect, getDisplayRows, getDisplayString, getInt, getItemAt, getItemHeight, getItemToAdd, getMenuHeight, getMenuWidth, getScreenRows, getSelectedItem, getText, indexOf, insertItemAt, itemIsVisible, itemsSize, make, makeItemVisible, makeVisible, modifyItems, notifySelection, paintItem, paintItem, refresh, removeAll, repaintItem, select, select, selectItems, selectNext, selectOrUnselect, selectPrev, setData, setInt, setText, trySelectItem |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode |
| Methods inherited from interface ewe.ui.ScrollClient |
canGo, doScroll, getActual, getCurrent, getServer, getVisible, needScrollBar, setServer |
| Methods inherited from interface ewe.data.ISimpleList |
itemIsVisible, makeItemVisible, updateItems |
| Methods inherited from interface ewe.data.IndexSelectable |
select |
| Constructor Detail |
public mList(int rows,
int columns,
boolean multi)
| Method Detail |
public boolean isSelected(int index)
IndexSelectable
isSelected in interface IndexSelectableisSelected in class BasicListpublic void selectItem(String label)
selectItem in class ChoiceControl
public void selectItem(int index,
boolean selected)
selectItem in class ChoiceControlpublic void postEvent(Event ev)
postEvent in class Menuprotected void paintBox(Graphics g)
paintBox in class ChoiceControlprotected void calculateSizes()
Control
calculateSizes in class BasicListpublic ScrollablePanel getScrollablePanel()
getScrollablePanel in class BasicListpublic void selectAll(boolean select)
selectAll in class BasicListpublic boolean noSelection()
noSelection in interface Selectablepublic boolean hasSelection()
hasSelection in interface Selectablepublic boolean deleteSelection()
deleteSelection in interface Selectablepublic Object getSelection()
getSelection in interface Selectablepublic boolean replaceSelection(Object clipboard)
replaceSelection in interface Selectablepublic int countSelectedIndexes()
IndexSelectable
countSelectedIndexes in interface IndexSelectablecountSelectedIndexes in class BasicListpublic int[] getSelectedIndexes()
IndexSelectable
getSelectedIndexes in interface IndexSelectablegetSelectedIndexes in class BasicListpublic int getSelectedIndex(int selectedIndexIndex)
IndexSelectable
getSelectedIndex in interface IndexSelectablegetSelectedIndex in class BasicListpublic MenuItem addItem(String what)
public void setSelectedIndexes(int[] indexes)
IndexSelectable
setSelectedIndexes in interface IndexSelectablesetSelectedIndexes in class BasicListprotected void doPaintData(Graphics gr)
Control
doPaintData in class ChoiceControlpublic Object[] getListItems()
ISimpleList
getListItems in interface ISimpleListgetListItems in class BasicListpublic void setListItems(Object[] items)
ISimpleList
setListItems in interface ISimpleListsetListItems in class BasicListpublic Object getListItem(int index)
ISimpleList
getListItem in interface ISimpleList
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||