|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--marimba.gui.Widget
|
+--marimba.gui.TextWidget
|
+--marimba.gui.TextBoxWidget
|
+--marimba.gui.DropDownTextBoxWidget
A text widget with an associated pull down menu which has to be used by other widgets and cannot be used standalone.
| Field Summary | |
int |
align
Should the down arrowbutton be displayed at the left or the right. |
boolean |
down
Determines whether the menu is being displayed right now. |
boolean |
editingText
This is set to true when the user tries to enter something, meaning that no further key lookups are to take place. |
boolean |
fillButton
If true, the dropdown button will be filled. |
protected static int |
SIZ
|
| Fields inherited from class marimba.gui.TextBoxWidget |
alignOptions, caretPos, caretVisible, echoCharacter, keyDisplay, keyString, lastLocale, len, mouseDownFocus, savetext, scrollx, selDepth, selEnd, selPos, selStart, shadowColor, style, styleOptions, text, textColor |
| Fields inherited from class marimba.gui.Widget |
adapter, background, clazz, defaultBackground, defaultFont, defaultForeground, defaultHilite, directGraphics, disabled, east, editor, focus, font, foreground, height, hilite, layoutMgr, name, north, nwidgets, parent, script, south, tip, transparent, tx, ty, valid, visible, wBackground, west, wFont, wForeground, wHilite, widgets, width, wScript, wTip, x, y |
| Fields inherited from interface marimba.gui.WidgetConstants |
ALWAYS, ANYWHERE, APPLET, ASCENDING, BLINK, BLUE, BONGO_EVENT, BOTH, BOTTOM, BOXED, BUTTON, CENTER, CHAR, CHECK, COLLAPSE_EVENT, CONTENT, DESCENDING, DETACHED, DIAGONAL, DOWN, DRAG, EXCLUSIVE, EXPAND_EVENT, FILL, FILLED, GREEN, HORIZONTAL, INSIDE, INVISIBLE, JAVA_VERSION, JAVAOS, JDK10, JDK11, LAYERS, LEFT, LOWERED, MAC, MULTIPLE, NETCASTER, NETSCAPE, NEVER, NONE, NT, OPTIONAL, OS_ARCH, OS_NAME, OS_VERSION, OUTLINE, PAGE_DOWN, PAGE_EVENT, PAGE_UP, PATTERN, PC, PICTURE, PLAIN, PROPORTIONAL, RADIO, RAISED, RED, REST_EVENT, RIGHT, ROUNDED, SCALE, SCROLLBAR, SCROLLING, SOLID, SQUARE, TEXT_CHANGED_EVENT, TOP, TOPLEFT, TRUNCATE, UNDERLINE, UNIX, UP, VERTICAL, WAKE_EVENT, WIN95, WINDOWS, WORD |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
DropDownTextBoxWidget()
Constructor. |
|
| Method Summary | |
void |
action()
Forward actions to parent. |
protected boolean |
eventInText(java.awt.Event evt)
Event is not in the text area when it is on the button. |
boolean |
focusInterest()
Support for input focus, when it is NOT editable too! |
int |
getAlign()
Get the current alignment. |
boolean |
getFillButton()
Check whether the dropdown button is being filled. |
java.awt.Dimension |
getPreferredSize()
Get the preferred size of URL text widgets. |
void |
getProperties(PropertyList list)
Get the properties of the dropdown textbox. |
boolean |
handleEvent(java.awt.Event evt)
Handle mouse and character events. |
boolean |
isDown()
Check whether the DropDownTextBox is down. |
int |
leftMargin()
Get the Left Margin. |
void |
paint(java.awt.Graphics g,
int cx,
int cy,
int cw,
int ch)
Paint the text in the correct foreground color. |
void |
paintBackground(java.awt.Graphics g,
int cx,
int cy,
int cw,
int ch)
Paint the menu button too. |
protected void |
repaintText()
Only repaint the content of the textbox, do not repaint the arrow buton. |
int |
rightMargin()
Get the Right Margin |
void |
setAlign(int align)
Set alignment. |
void |
setDown(boolean down)
Set whether or not the DropDown is down. |
void |
setFillButton(boolean fillButton)
Set whether or not to fill the button. |
void |
setProperties(PropertyList list)
Set the properties of the dropdown textbox. |
void |
setStyle(int style)
Set the style of this widget the same as in the super class, but adjust the transparent boolean. |
| Methods inherited from class marimba.gui.TextBoxWidget |
applyProperties, clearSelection, copyText, cutText, delete, focus, getAlignOptions, getEchoCharacter, getEditor, getLength, getSavetext, getSelected, getSelEnd, getSelStart, getShadowColor, getStyle, getStyleOptions, getText, getTextChars, inheritForeground, initAll, insert, insert, nextWordPos, paintBackground, pasteText, previousWordPos, select, setEchoCharacter, setForeground, setSavetext, setShadowColor, setText, tick, x2pos |
| Methods inherited from class marimba.gui.TextWidget |
append, append, clear, getStringValue, getValue, isEditable, isKeyLookup, isWord, select, select, selectAll, setEditable, setKeyLookup, setValue |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static final int SIZ
public int align
getAlign(),
setAlign(int)public boolean down
isDown(),
setDown(boolean)public boolean fillButton
getFillButton(),
setFillButton(boolean)public boolean editingText
| Constructor Detail |
public DropDownTextBoxWidget()
| Method Detail |
public void getProperties(PropertyList list)
getProperties in class TextBoxWidgetmarimba.gui.Widgetlist - The list in which the current state needs to be saved.Widget.setProperties(PropertyList)public void setProperties(PropertyList list)
setProperties in class TextBoxWidgetmarimba.gui.Widgetlist - The list that contains the new widget state.Widget.getProperties(PropertyList)public java.awt.Dimension getPreferredSize()
getPreferredSize in class TextBoxWidgetpublic boolean isDown()
downpublic void setDown(boolean down)
downpublic int getAlign()
getAlign in class TextBoxWidgetalignpublic void setAlign(int align)
setAlign in class TextBoxWidgetalignpublic boolean getFillButton()
fillButtonpublic void setFillButton(boolean fillButton)
fillButtonpublic void setStyle(int style)
setStyle in class TextBoxWidgetTextBoxWidget.stylepublic int leftMargin()
leftMargin in class TextBoxWidgetrightMargin()public int rightMargin()
rightMargin in class TextBoxWidgetleftMargin()protected void repaintText()
repaintText in class TextBoxWidget
public void paint(java.awt.Graphics g,
int cx,
int cy,
int cw,
int ch)
paint in class TextBoxWidget
public void paintBackground(java.awt.Graphics g,
int cx,
int cy,
int cw,
int ch)
paintBackground in class TextBoxWidgetTextBoxWidget.paintBackground(java.awt.Graphics, int, int, int, int)protected boolean eventInText(java.awt.Event evt)
eventInText in class TextWidgetpublic boolean handleEvent(java.awt.Event evt)
handleEvent in class TextBoxWidgetmarimba.gui.Widgetevt - the event that needs to be handled by the widgetWidget.postEvent(java.awt.Event)public void action()
action in class TextBoxWidgetpublic boolean focusInterest()
focusInterest in class TextWidgetmarimba.gui.WidgetWidget.focus,
Widget.requestFocus()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||