|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Widget
Widget specifies the interface for Swing component factories General usage of implementations:
getComponent()
Field Summary | |
---|---|
static Widget |
EMPTY_WIDGET
|
Method Summary | |
---|---|
boolean |
canClose()
Checks whether this component can be closed visually, for example when there are no unsaved changes. |
List<? extends AbstractCommand> |
getCommands()
Returns a list of commands for this widget. |
JComponent |
getComponent()
|
boolean |
isShowing()
Encompasses the status of the widget between onAboutToShow() and onAboutToHide(). |
void |
onAboutToHide()
Hook method called before moving the component to the background (=hiding) |
void |
onAboutToShow()
Hook method called before showing the component on screen. |
Field Detail |
---|
static final Widget EMPTY_WIDGET
Method Detail |
---|
JComponent getComponent()
null
graphical component built using the
parameters held in the widget instance.void onAboutToShow()
void onAboutToHide()
boolean isShowing()
true
if the widget is shown in the foreground.boolean canClose()
true
if the widget can be closed without problems.List<? extends AbstractCommand> getCommands()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |