|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kalmeo.kuix.widget.Widget
org.kalmeo.kuix.widget.FocusableWidget
org.kalmeo.kuix.widget.ActionWidget
org.kalmeo.kuix.widget.PopupBox
public class PopupBox
This class represents a Kuix popup box.
For further informations, visit the Kuix widgets reference page.
| Nested Class Summary | |
|---|---|
class |
PopupBox.PopupBoxMenuItem
This class represents a popupBox menuItem |
| Nested classes/interfaces inherited from class org.kalmeo.kuix.widget.Widget |
|---|
Widget.BindInstruction |
| Field Summary | |
|---|---|
boolean |
barsOnTop
|
boolean |
cleanUpWhenRemoved
|
| Fields inherited from class org.kalmeo.kuix.widget.FocusableWidget |
|---|
DISABLED_PSEUDO_CLASS, enabled, focusable, focused, HOVER_PSEUDO_CLASS, PSEUDO_CLASSES |
| Fields inherited from class org.kalmeo.kuix.widget.Widget |
|---|
bindInstructions, DEFAULT_ALIGN, DEFAULT_BACKGROUND_ALIGN, DEFAULT_BACKGROUND_REPEAT, DEFAULT_BORDER, DEFAULT_GAP, DEFAULT_MARGIN, DEFAULT_MIN_SIZE, DEFAULT_PADDING, DEFAULT_SPAN, DEFAULT_WEIGHT, next, parent, previous |
| Constructor Summary | |
|---|---|
PopupBox()
Construct a PopupBox |
|
| Method Summary | |
|---|---|
Widget |
add(Widget widget)
Add a Widget to this as child |
protected void |
doLayout()
Layout the widget if its layout is defined. |
Alignment |
getAlign()
Returns the alignment value. |
Color |
getBackgroundColor()
Returns the background color value. |
Image[] |
getBackgroundImage()
Returns the backroundImage or image list if multi images are defined. |
Insets |
getBorder()
|
Widget |
getBottomBar()
Create the bottomBar instance if it doesn't exist and return it. |
protected java.lang.Object |
getDefaultStylePropertyValue(java.lang.String name)
Returns the de default style property value for name
property, or null. |
MenuItem |
getFirstMenuItem()
Create the firstMenuItem instance if it doesn't exist and return it. |
FocusManager |
getFocusManager()
Used for popup like widgets |
Gap |
getGap()
Returns the gap value. |
Widget |
getInternalChildInstance(java.lang.String tag)
Returns the first internal child instance corresponding to the given tag. |
Layout |
getLayout()
|
LayoutData |
getLayoutData()
|
Insets |
getMargin()
|
Insets |
getPadding()
|
MenuItem |
getPopupBoxMenuItem(int kuixKeyCode)
Returns the Screen.ScreenMenu that correspond to the given
kuixKeyCode. |
MenuItem |
getSecondMenuItem()
Create the secondMenuItem instance if it doesn't exist and return it. |
boolean |
isBarsOnTop()
|
boolean |
isCleanUpWhenRemoved()
|
boolean |
isFocusable()
Check if this Widget is focusable. |
protected void |
onAdded(Widget parent)
Event called when the widjet is added to parent. |
protected void |
onRemoved(Widget parent)
Event called when the widjet is removed from parent. |
boolean |
setAttribute(java.lang.String name,
java.lang.String value)
Set the value to the specified attribute representing by
the name |
void |
setBarsOnTop(boolean barsOnTop)
|
void |
setCleanUpWhenRemoved(boolean cleanUpWhenRemoved)
|
void |
setContent(java.lang.Object content)
Define the content of the PopupBox. |
void |
setDuration(int duration)
|
| Methods inherited from class org.kalmeo.kuix.widget.ActionWidget |
|---|
getOnAction, processActionEvent, processKeyEvent, processPointerEvent, processShortcutKeyEvent, setOnAction |
| Methods inherited from class org.kalmeo.kuix.widget.FocusableWidget |
|---|
getAttribute, getAvailablePseudoClasses, getOnFocus, getOnLostFocus, giveFocusToNearestWidget, isEnabled, isFocused, isPseudoClassCompatible, processFocusEvent, remove, requestFocus, setEnabled, setFocusable, setOnFocus, setOnLostFocus, setVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean cleanUpWhenRemoved
public boolean barsOnTop
| Constructor Detail |
|---|
public PopupBox()
PopupBox
| Method Detail |
|---|
public Widget getInternalChildInstance(java.lang.String tag)
Widgettag.
getInternalChildInstance in class Widget
public boolean setAttribute(java.lang.String name,
java.lang.String value)
Widgetvalue to the specified attribute representing by
the name
setAttribute in class ActionWidgettrue if the attribute existspublic boolean isCleanUpWhenRemoved()
public void setCleanUpWhenRemoved(boolean cleanUpWhenRemoved)
cleanUpWhenRemoved - the cleanUpWhenRemoved to setpublic boolean isBarsOnTop()
public void setBarsOnTop(boolean barsOnTop)
barsOnTop - the barsOnTop to setpublic Widget getBottomBar()
public FocusManager getFocusManager()
Widget
getFocusManager in class Widgetpublic boolean isFocusable()
WidgetWidget is focusable.
isFocusable in class FocusableWidgettrue if the widget is focusableprotected java.lang.Object getDefaultStylePropertyValue(java.lang.String name)
Widgetname
property, or null.
getDefaultStylePropertyValue in class Widgetname
propertypublic Insets getMargin()
getMargin in class Widgetpublic Insets getBorder()
getBorder in class Widgetpublic Insets getPadding()
getPadding in class Widgetpublic Alignment getAlign()
Widget
getAlign in class Widgetpublic Gap getGap()
Widget
getGap in class Widgetpublic Layout getLayout()
getLayout in class Widgetpublic LayoutData getLayoutData()
getLayoutData in class Widgetpublic Color getBackgroundColor()
Widgetnull.
getBackgroundColor in class Widgetpublic Image[] getBackgroundImage()
Widget
getBackgroundImage in class Widgetpublic void setDuration(int duration)
duration - the duration to setpublic void setContent(java.lang.Object content)
PopupBox. The content object could be s
straing or a Widget.
content - the string or widget to add as contentprotected void doLayout()
Widget
doLayout in class Widgetpublic Widget add(Widget widget)
WidgetWidget to this as child
add in class Widgetwidget - The Widget to add
Widgetpublic MenuItem getPopupBoxMenuItem(int kuixKeyCode)
Screen.ScreenMenu that correspond to the given
kuixKeyCode.
kuixKeyCode -
Screen.ScreenMenu that correspond to the given
kuixKeyCodepublic MenuItem getFirstMenuItem()
public MenuItem getSecondMenuItem()
protected void onAdded(Widget parent)
Widgetwidjet is added to parent.
onAdded in class FocusableWidgetprotected void onRemoved(Widget parent)
Widgetwidjet is removed from parent.
onRemoved in class Widget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||