|
|||||||||
| 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.ComboBox
|
+--superwaba.ext.xplat.html.ui.ComboBox
ComboBox extends the waba.ui.ComboBox control
and implements it as a Controllable
| Fields inherited from class waba.ui.ComboBox |
extraArrowSize,
fullHeight,
fullWidth,
pop |
| 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 | |
ComboBox(PopList pop,
java.lang.String name)
Creates an empty ComboBox. |
|
| Method Summary | |
void |
add(java.lang.String item,
java.lang.String key,
boolean selected)
Adds an Object to this ComboBox This is the only method that should be used for building a ComboBox. |
Graphics |
createGraphics()
Override the createGraphics method in order to get the combobox control to be positionned at its place, given the scroll values. |
Rect |
getAbsoluteRect()
Returns the absolute coordinates of this control relative to the MainWindow. |
void |
getFocus()
Make this controllable gets the focus |
java.lang.String |
getName()
Get the name of this Controllable |
java.lang.String |
getValue()
Get the value hold by this Controllable |
void |
onBoundsChanged()
Called after a setRect. |
void |
onEvent(Event event)
Called to process key, pen, control and other posted events. |
void |
onPaint(Graphics g)
When this method is called, the graphics object passed has been translated into the coordinate system of the control and the area behind the control has already been painted. |
void |
popupPop()
Pops up the combobox |
void |
repaint()
Marks the control for repaint. |
void |
reset()
Resets the control to its original default value. |
void |
setHtmlContainer(HtmlContainer htmlCnr)
Set the Html HtmlContainer associated to this Controllable |
| Methods inherited from class waba.ui.ComboBox |
add,
add,
add,
clear,
enableHorizScroll,
getItemAt,
getItems,
getPreferredHeight,
getPreferredWidth,
getSelectedIndex,
getSelectedItem,
indexOf,
insert,
onColorsChanged,
onFontChanged,
qsort,
remove,
remove,
remove,
removeAll,
select,
select,
selectLast,
setCursorColor,
setItemAt,
size |
| Methods inherited from class waba.ui.Container |
add,
add,
broadcastEvent,
findChild,
getChildren,
getClientRect,
getClientRect,
onAdd,
onRemove,
onStart,
paintChildren,
setBorderStyle,
setEnabled,
setHighlighting,
swapToTopmostWindow |
| Methods inherited from class waba.ui.Control |
addTimer,
changeHighlighted,
contains,
drawHighlight,
getBackColor,
getFont,
getFontMetrics,
getForeColor,
getNext,
getParent,
getParentWindow,
getPos,
getRect,
getSize,
isDisplayed,
isEnabled,
isVisible,
onWindowPaintFinished,
postEvent,
removeTimer,
repaintNow,
requestFocus,
setBackColor,
setBackForeColors,
setFocusLess,
setFont,
setForeColor,
setRect,
setRect,
setRect,
setVisible,
translateFromOrigin,
uiStyleChanged |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public ComboBox(PopList pop,
java.lang.String name)
name - Name of this Controllable| Method Detail |
public void add(java.lang.String item,
java.lang.String key,
boolean selected)
This is the only method that should be used for building a ComboBox.
item - String to addkey - Associated keyselected - true if this Object is selected by defaultpublic void setHtmlContainer(HtmlContainer htmlCnr)
htmlCnr - the HtmlContainer associated to this Controllablepublic void getFocus()
public java.lang.String getName()
public java.lang.String getValue()
public void popupPop()
public void onBoundsChanged()
public Rect getAbsoluteRect()
public void onEvent(Event event)
event - the event to processpublic void repaint()
public Graphics createGraphics()
public void onPaint(Graphics g)
g - the graphics object for drawingpublic void reset()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||