| tucana.echo2.app.widgetdash.WidgetGrabPoint
WidgetGrabPoint | public class WidgetGrabPoint extends Component (Code) | | This is a wrapping
Component that makes its child a widget "Grab Point".
Essentially, any Component wrapped by this can be used to drag a widget around
the screen. For instance, a title bar in a WidgetContainer might be wrapped
in a WidgetGrabPoint.
author: Jeremy Volkman |
Constructor Summary | |
public | WidgetGrabPoint(Component grabbable, WidgetContainer widgetContainer) Creates a WidgetGrabPoint making the given
Component grabbable
Parameters: grabbable - The Component. |
Method Summary | |
public void | add(Component c, int n) Checks that no more than one Component is a
child of this DragSource. | public String | getCursor() Get the mouse cursor to be displayed over this GrabPoint. | public Component | getGrabbable() Returns the Component that is to be dragged. | public WidgetContainer | getWidgetContainer() Return the container that this grab point should move. | public void | setCursor(String cursor) Set the mouse cursor icon to be displayed over this GrabPoint. |
DEFAULT_CURSOR | final public static String DEFAULT_CURSOR(Code) | | The default mouse cursor
|
PROPERTY_CURSOR | final public static String PROPERTY_CURSOR(Code) | | Mouse cursor property key
|
WidgetGrabPoint | public WidgetGrabPoint(Component grabbable, WidgetContainer widgetContainer)(Code) | | Creates a WidgetGrabPoint making the given
Component grabbable
Parameters: grabbable - The Component. Parameters: widgetContainer - The WidgetContainer that will be dragged by this point |
add | public void add(Component c, int n)(Code) | | Checks that no more than one Component is a
child of this DragSource.
|
getCursor | public String getCursor()(Code) | | Get the mouse cursor to be displayed over this GrabPoint.
The mouse cursor string |
getGrabbable | public Component getGrabbable()(Code) | | Returns the Component that is to be dragged.
The draggable Component. |
getWidgetContainer | public WidgetContainer getWidgetContainer()(Code) | | Return the container that this grab point should move.
The WidgetContainer to be moved |
setCursor | public void setCursor(String cursor)(Code) | | Set the mouse cursor icon to be displayed over this GrabPoint.
Parameters: cursor - The new icon string |
|
|