Java 3D Sidebar
 All Classes Namespaces Functions Variables
TextWidget Class Reference
Inheritance diagram for TextWidget:
Widget

Public Member Functions

 TextWidget (String tag)
 
String getText ()
 
void setText (String text)
 Sets the text of the widget. More...
 
String getTag ()
 Returns tag of the widget given in constructor. More...
 
void setOnSidebarActionListener (OnSidebarActionListener listener)
 Register a callback to be invoked when an action happens on this widget. More...
 
void invokeOnSidebarActionCallback (int action, Bundle extras)
 This method shouldn't be called manually! More...
 

Static Public Attributes

static final int EVENT_CLICKED = 1
 

Constructor & Destructor Documentation

TextWidget ( String  tag)

Member Function Documentation

String getTag ( )
inherited

Returns tag of the widget given in constructor.

Returns
tag of the widget

Referenced by Sidebar.setWidget().

String getText ( )
Returns
text of the widget
void invokeOnSidebarActionCallback ( int  action,
Bundle  extras 
)
inherited

This method shouldn't be called manually!

References OnSidebarActionListener.onSidebarAction().

void setOnSidebarActionListener ( OnSidebarActionListener  listener)
inherited

Register a callback to be invoked when an action happens on this widget.

Parameters
listenerthe callback that will run
See also
OnSidebarActionListener
void setText ( String  text)

Sets the text of the widget.

Parameters
text

Member Data Documentation

final int EVENT_CLICKED = 1
static