|
||||||||||
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)
Widget
tag
.
getInternalChildInstance
in class Widget
public boolean setAttribute(java.lang.String name, java.lang.String value)
Widget
value
to the specified attribute representing by
the name
setAttribute
in class ActionWidget
true
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 Widget
public boolean isFocusable()
Widget
Widget
is focusable.
isFocusable
in class FocusableWidget
true
if the widget is focusableprotected java.lang.Object getDefaultStylePropertyValue(java.lang.String name)
Widget
name
property, or null
.
getDefaultStylePropertyValue
in class Widget
name
propertypublic Insets getMargin()
getMargin
in class Widget
public Insets getBorder()
getBorder
in class Widget
public Insets getPadding()
getPadding
in class Widget
public Alignment getAlign()
Widget
getAlign
in class Widget
public Gap getGap()
Widget
getGap
in class Widget
public Layout getLayout()
getLayout
in class Widget
public LayoutData getLayoutData()
getLayoutData
in class Widget
public Color getBackgroundColor()
Widget
null
.
getBackgroundColor
in class Widget
public Image[] getBackgroundImage()
Widget
getBackgroundImage
in class Widget
public 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 Widget
public Widget add(Widget widget)
Widget
Widget
to this as child
add
in class Widget
widget
- The Widget
to add
Widget
public MenuItem getPopupBoxMenuItem(int kuixKeyCode)
Screen.ScreenMenu
that correspond to the given
kuixKeyCode
.
kuixKeyCode
-
Screen.ScreenMenu
that correspond to the given
kuixKeyCode
public MenuItem getFirstMenuItem()
public MenuItem getSecondMenuItem()
protected void onAdded(Widget parent)
Widget
widjet
is added to parent
.
onAdded
in class FocusableWidget
protected void onRemoved(Widget parent)
Widget
widjet
is removed from parent
.
onRemoved
in class Widget
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |