|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--waba.ui.Control
|
+--waba.ui.Container
|
+--waba.ui.Window
|
+--waba.ui.PopList
PopList is a simple implementation of a PopUp Listbox. Used by the ComboBox class.
| Field Summary | |
boolean |
dontHideParent
set to true if want to make the control popup below or above always, and not only if WinCE |
boolean |
fullHeight
Set to true to make this pop have the screen height |
boolean |
fullWidth
Set to true to make this popup have the screen width |
ListBox |
lb
now this member is public to make this class simple |
| Fields inherited from class waba.ui.Window |
_controlEvent,
_focus,
_keyEvent,
_penEvent,
beepIfOut,
blockingCount,
borderStyle,
canDrag,
eraseBackgroundNow,
flicker,
HIDE_STATE,
highlighted,
highResPrepared,
imgCovered,
lastSwappedContainer,
mainSwapContainer,
menubar,
needsPaint,
NO_BORDER,
RECT_BORDER,
ROUND_BORDER,
TAB_BORDER,
TAB_ONLY_BORDER,
title,
titleFont,
topMost,
VK_BOTTOM,
VK_HIDE,
VK_SHOW,
VK_TOP,
zStack |
| Fields inherited from class waba.ui.Container |
BORDER_LOWERED,
BORDER_NONE,
BORDER_RAISED,
BORDER_SIMPLE,
children,
lastH,
lastW,
lastX,
lastY,
parentWindow,
started,
tabOrder,
tail |
| Fields inherited from class waba.ui.Control |
AFTER,
appId,
appObj,
asContainer,
asWindow,
backColor,
backDis,
BEFORE,
BOTTOM,
CENTER,
clearValueInt,
clearValueStr,
enabled,
FILL,
FIT,
fm,
fmH,
focusLess,
focusTraversable,
font,
foreColor,
foreDis,
height,
highlightRectsCount,
isHighlighting,
LEFT,
parent,
PREFERRED,
RANGE,
RIGHT,
SAME,
TOP,
uiCE,
uiFlat,
uiPalm,
uiVista,
visible,
width,
x,
x2,
y,
y2 |
| Constructor Summary | |
PopList()
Creates a PopList with coordinates that will be set later via the setRect method. |
|
PopList(ListBox lb)
Creates a PopList with the given ListBox. |
|
| Method Summary | |
int |
getPreferredHeight()
Returns the size of the title if any plus the size of the border. |
int |
getPreferredWidth()
Returns the size of the title if any plus the size of the border. |
protected boolean |
onClickedOutside(int x,
int y)
Close the popup list with a click outside its bounds |
void |
onEvent(Event event)
Called to process key, pen, control and other posted events. |
protected void |
onFontChanged()
Sets the font of the controls inside this window too |
protected void |
onPopup()
Placeholder called imediatly before the popup began. the default implementation does nothing. |
protected void |
postUnpop()
Placeholder called after the unpop is done and after the repaint of the other window. the default implementation does nothing. |
void |
setRect(int x,
int y,
int width,
int height)
Sets the rect for this poplist. |
void |
setRect(int x,
int y,
int width,
int height,
Control relative)
Sets the rect for this poplist. |
void |
setRect(Rect r)
Sets the rect for this poplist. |
| Methods inherited from class waba.ui.Window |
_doPaint,
_doPaint,
_postEvent,
_postSoundEvent,
damageRect,
destroyZStack,
dontSaveBehind,
drawHighlight,
getClientRect,
getClientRect,
getFocus,
getHighlighted,
getOffScreen,
getTopMost,
handleFocusChangeKeys,
isTopMost,
isVisible,
loadBehind,
makeUnmovable,
onUnpop,
paintTitle,
popupBlockingModal,
popupMenuBar,
popupModal,
postPopup,
postPressedEvent,
pumpEvents,
saveBehind,
setBorderStyle,
setDoubleBuffer,
setFocus,
setHighlighted,
setMenuBar,
setStatePosition,
setTitle,
setTitleFont,
swap,
swapFocus,
unpop,
updateScreen,
validate |
| Methods inherited from class waba.ui.Container |
add,
add,
add,
broadcastEvent,
clear,
findChild,
getChildren,
onAdd,
onColorsChanged,
onPaint,
onRemove,
onStart,
paintChildren,
remove,
setEnabled,
setHighlighting,
swapToTopmostWindow |
| Methods inherited from class waba.ui.Control |
addTimer,
changeHighlighted,
contains,
createGraphics,
getAbsoluteRect,
getBackColor,
getFont,
getFontMetrics,
getForeColor,
getNext,
getParent,
getParentWindow,
getPos,
getRect,
getSize,
isDisplayed,
isEnabled,
onBoundsChanged,
onWindowPaintFinished,
postEvent,
removeTimer,
repaint,
repaintNow,
requestFocus,
setBackColor,
setBackForeColors,
setFocusLess,
setFont,
setForeColor,
setVisible,
translateFromOrigin,
uiStyleChanged |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public ListBox lb
public boolean dontHideParent
public boolean fullHeight
public boolean fullWidth
| Constructor Detail |
public PopList()
public PopList(ListBox lb)
| Method Detail |
protected void onFontChanged()
public void setRect(Rect r)
public void setRect(int x,
int y,
int width,
int height)
public void setRect(int x,
int y,
int width,
int height,
Control relative)
protected boolean onClickedOutside(int x,
int y)
public void onEvent(Event event)
event - the event to processEvent,
KeyEvent,
PenEventpublic int getPreferredWidth()
public int getPreferredHeight()
protected void onPopup()
protected void postUnpop()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||