|
||||||||||
| 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.Screen
public class Screen
This class represents a Kuix screen.
For further informations, visit the Kuix widgets reference page.
| Nested Class Summary | |
|---|---|
class |
Screen.ScreenBar
This class represents a screen top or bottom bar (used for title and/or menu) |
class |
Screen.ScreenMenu
This class represents a screen menu |
| 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.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 | |
|---|---|
Screen()
Construct a {Screen} |
|
Screen(java.lang.String tag)
Construct a {Screen} |
|
| Method Summary | |
|---|---|
Widget |
add(Widget widget)
Add a Widget to this as child |
static void |
customizeScreenMenuLabels(java.io.ByteArrayInputStream selectLabelRenderer,
java.io.ByteArrayInputStream cancelLabelRenderer)
Cutomize Kuix screen menu labels. |
protected void |
doLayout()
Layout the widget if its layout is defined. |
Alignment |
getAlign()
Returns the alignment value. |
Insets |
getBorder()
|
Screen.ScreenBar |
getBottomBar()
Create the internal 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. |
protected Screen.ScreenMenu |
getFirstInternalMenu()
Create the internal firstMenu instance if it doesn't exist and return it. |
Menu |
getFirstMenu()
Create the firstMenu 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()
|
Insets |
getMargin()
|
Insets |
getPadding()
|
Menu |
getScreenMenu(int kuixKeyCode)
Returns the Screen.ScreenMenu that correspond to the given
kuixKeyCode. |
protected Screen.ScreenMenu |
getSecondInternalMenu()
Create the internal secondMenu instance if it doesn't exist and return it. |
Menu |
getSecondMenu()
Create the secondMenu instance if it doesn't exist and return it. |
java.lang.String |
getTitleText()
|
Screen.ScreenBar |
getTopBar()
Create the internal topBar instance if it doesn't exist and return it. |
Transition |
getTransition()
|
boolean |
isBarsOnTop()
|
boolean |
isCleanUpWhenRemoved()
|
protected void |
onRemoved(Widget parent)
Event called when the widjet is removed from parent. |
protected boolean |
processMenuAction(Menu menu,
boolean internal,
boolean isFirst)
Process an internal or default menu action. |
boolean |
processPointerEvent(byte type,
int x,
int y)
Process a pointer event |
void |
removeAll()
Remove all childs. |
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 |
setCurrent()
Set this Screen has current. |
void |
setTitle(java.lang.String title)
Define the desktop title |
protected void |
switchToDefaultMenus()
Switch menu display from internal menus to default menus |
protected void |
switchToInternalMenus()
Switch menu display from defaults menus to internal menus |
| 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 Screen()
public Screen(java.lang.String tag)
tag - | Method Detail |
|---|
public static void customizeScreenMenuLabels(java.io.ByteArrayInputStream selectLabelRenderer,
java.io.ByteArrayInputStream cancelLabelRenderer)
selectLabelRenderer - the renderer (xml input stream) used as select labelcancelLabelRenderer - the renderer (xml input scream) used as cancel labelpublic 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 Widgettrue if the attribute existspublic java.lang.String getTitleText()
public void setTitle(java.lang.String title)
title - public boolean isCleanUpWhenRemoved()
public void setCleanUpWhenRemoved(boolean cleanUpWhenRemoved)
cleanUpWhenRemoved - the cleanUpWhenRemoved to setpublic boolean isBarsOnTop()
public void setBarsOnTop(boolean barsOnTop)
barsOnTop - the barsOnTop to setpublic FocusManager getFocusManager()
Widget
getFocusManager in class Widgetpublic Layout getLayout()
getLayout in class Widgetpublic 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 Transition getTransition()
protected java.lang.Object getDefaultStylePropertyValue(java.lang.String name)
Widgetname
property, or null.
getDefaultStylePropertyValue in class Widgetname
propertypublic Screen.ScreenBar getTopBar()
public Screen.ScreenBar getBottomBar()
public Menu getScreenMenu(int kuixKeyCode)
Screen.ScreenMenu that correspond to the given
kuixKeyCode.
kuixKeyCode -
Screen.ScreenMenu that correspond to the given
kuixKeyCodepublic Menu getFirstMenu()
public Menu getSecondMenu()
protected Screen.ScreenMenu getFirstInternalMenu()
protected Screen.ScreenMenu getSecondInternalMenu()
protected void switchToInternalMenus()
protected void switchToDefaultMenus()
public void setCurrent()
Screen has current.
protected 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 void removeAll()
Widget
removeAll in class Widget
public boolean processPointerEvent(byte type,
int x,
int y)
Widget
processPointerEvent in class Widgettrue if the event is treated by the widget
protected boolean processMenuAction(Menu menu,
boolean internal,
boolean isFirst)
menu - internal - isFirst -
true if the event is treated by the widgetprotected 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 | |||||||||