public class FocusFrame extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
frame(Component newComponent)
Frames the given widget.
|
void |
frame(Component newComponent,
Element newElement)
Frames the given widget.
|
static FocusFrame |
get() |
void |
hide(Component c)
Hides the frame.
|
void |
show(Component c)
Shows the frame on a widget that has been previously framed.
|
void |
sync(Component c)
Updates the frame's size and position to match the widget.
|
void |
sync(Component c,
Element elem)
Updates the frame's size and position to match the widget's child
element.
|
void |
unframe()
Removes and visible frames.
|
void |
unframe(Component c)
Remove the comonent's frame.
|
public static FocusFrame get()
public void frame(Component newComponent)
newComponent - the widget to be framedpublic void frame(Component newComponent, Element newElement)
newComponent - the widget to be framednewElement - a child element of the widget where the frame should
be appliedpublic void hide(Component c)
c - the framed widgetpublic void show(Component c)
c - the widgetpublic void sync(Component c)
c - the widgetpublic void sync(Component c, Element elem)
c - the widgetelem - the child elementpublic void unframe()
public void unframe(Component c)
c - the widgetCopyright © 2012. All Rights Reserved.