Java 3D Sidebar
 All Classes Namespaces Functions Variables
Widget Class Referenceabstract
Inheritance diagram for Widget:
ButtonWidget ImageWidget NavigationWidget TextWidget

Public Member Functions

 Widget (String tag)
 
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...
 

Constructor & Destructor Documentation

Widget ( String  tag)
Parameters
tagidentifier of the Widget.
Exceptions
IllegalArgumentExceptionif tag is null or empty

Member Function Documentation

String getTag ( )

Returns tag of the widget given in constructor.

Returns
tag of the widget

Referenced by Sidebar.setWidget().

void invokeOnSidebarActionCallback ( int  action,
Bundle  extras 
)

This method shouldn't be called manually!

References OnSidebarActionListener.onSidebarAction().

void setOnSidebarActionListener ( OnSidebarActionListener  listener)

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

Parameters
listenerthe callback that will run
See also
OnSidebarActionListener