MetaDone
metadone.client.grasyla2.visuallibrary.RootWidget Class Reference
Collaboration diagram for metadone.client.grasyla2.visuallibrary.RootWidget:

List of all members.

Classes

interface  WidgetUpdater

Public Types

enum  RootWidgetProperty {
  SELECTABLE, MOVEABLE, RESIZABLE, HOVERABLE,
  LAYABLE
}

Public Member Functions

 RootWidget (Widget w)
final Widget getWidget ()
void changeProperty (RootWidgetProperty p, boolean b)
Set< RootWidgetPropertygetProperties ()
void setUpdater (WidgetUpdater updater)
final boolean equals (Object obj)
final int hashCode ()
String toString ()

Static Package Attributes

static final EnumSet
< RootWidgetProperty
DEFAULT_PROPERTIES = EnumSet.of(RootWidgetProperty.SELECTABLE, RootWidgetProperty.MOVEABLE, RootWidgetProperty.HOVERABLE, RootWidgetProperty.LAYABLE)

Private Member Functions

void refresh ()

Private Attributes

final Widget widget
EnumSet< RootWidgetPropertyprop = EnumSet.copyOf(DEFAULT_PROPERTIES)
WidgetUpdater updater

Detailed Description

A wrapper class for widgets that will be shown as the roots of the scene.

This allows to attach some properties to the nodes.

Author:
kma

Member Enumeration Documentation

Widget properties.

Enumerator:
SELECTABLE 

Indicates whether the widget can be selected.

This is used for clicking.

MOVEABLE 

Indicates whether the widget is movable.

RESIZABLE 

Indicates whether the widget is resizable.

HOVERABLE 

Indicates whether the widget should be concerned about hover events.

LAYABLE 

Indicates whether the widget is considered in the layout algorithms.


Constructor & Destructor Documentation

metadone.client.grasyla2.visuallibrary.RootWidget.RootWidget ( Widget  w)

Initializes this wrapper.

Parameters:
wThe widget
Exceptions:
NullPointerExceptionwhen w is null

References metadone.client.grasyla2.visuallibrary.RootWidget.widget.


Member Function Documentation

void metadone.client.grasyla2.visuallibrary.RootWidget.changeProperty ( RootWidgetProperty  p,
boolean  b 
)

Changes a property of this widget.

Parameters:
pThe property
bThe new value

References metadone.client.grasyla2.visuallibrary.RootWidget.prop, and metadone.client.grasyla2.visuallibrary.RootWidget.refresh().

final boolean metadone.client.grasyla2.visuallibrary.RootWidget.equals ( Object  obj)
Set<RootWidgetProperty> metadone.client.grasyla2.visuallibrary.RootWidget.getProperties ( )

Gets the properties.

Returns:
The set of defined properties (unmodifiable)

References metadone.client.grasyla2.visuallibrary.RootWidget.prop.

Referenced by metadone.client.grasyla2.visuallibrary.RootWidget.refresh().

final int metadone.client.grasyla2.visuallibrary.RootWidget.hashCode ( )
String metadone.client.grasyla2.visuallibrary.RootWidget.toString ( )

Member Data Documentation

final EnumSet<RootWidgetProperty> metadone.client.grasyla2.visuallibrary.RootWidget.DEFAULT_PROPERTIES = EnumSet.of(RootWidgetProperty.SELECTABLE, RootWidgetProperty.MOVEABLE, RootWidgetProperty.HOVERABLE, RootWidgetProperty.LAYABLE) [static, package]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations