|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levigo.jadice.appbase.BasicAddOnPresenter
public class BasicAddOnPresenter
The BasicAddOnPresenter manages all add-ons as separate frames. AddOn identity is managed globally, i.e. there is only one instance of an add-on of a certain class at a time.
Constructor Summary | |
---|---|
BasicAddOnPresenter()
|
Method Summary | ||
---|---|---|
void |
activateAddOn(Class<? extends JComponent> addOnComponentClass,
ViewComponent context)
Activate an existing add-on component of the given class within the context of the given view component. |
|
void |
deactivateAddOn(Class<? extends JComponent> addOnComponentClass,
ViewComponent context)
Deactivate an existing add-on component of the given class within the context of the given view component. |
|
void |
disposeAddOn(Class<? extends JComponent> addOnComponentClass,
ViewComponent context)
Deactivate and dispose an existing add-on component of the given class within the context of the given view component. |
|
|
getAddOn(Class<T> addOnComponentClass,
ViewComponent context)
Return the add-on component of the given class within the context of the given view component. |
|
HashMap<ViewComponent,List<JComponent>> |
getAddOns()
Return a map of currently managed add-ons, indexed by context. |
|
boolean |
isAddOnActive(Class<? extends JComponent> addOnComponentClass,
ViewComponent context)
Determine whether there is a registered and active (visible) add-on component of the given class within the context of the given view component. |
|
boolean |
isAddOnRegistered(Class<? extends JComponent> addOnComponentClass,
ViewComponent context)
Determine whether there is a registered (displayable) add-on component of the given class within the context of the given view component. |
|
void |
manageAddOn(JComponent addOn,
ViewComponent context)
Register an add-on component of the given class within the context of the given view component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicAddOnPresenter()
Method Detail |
---|
public boolean isAddOnRegistered(Class<? extends JComponent> addOnComponentClass, ViewComponent context)
AddOnPresenter
isAddOnRegistered
in interface AddOnPresenter
addOnComponentClass
- the add-on classcontext
- the view component
true
if there is a matching add-on, false
otherwisepublic boolean isAddOnActive(Class<? extends JComponent> addOnComponentClass, ViewComponent context)
AddOnPresenter
isAddOnActive
in interface AddOnPresenter
addOnComponentClass
- the add-on classcontext
- the view component
true
if there is a matching add-on, false
otherwisepublic <T extends JComponent> T getAddOn(Class<T> addOnComponentClass, ViewComponent context)
AddOnPresenter
null
if there is no such add-on component.
getAddOn
in interface AddOnPresenter
T
- the type of add-onaddOnComponentClass
- the add-on classcontext
- the view component
null
public void activateAddOn(Class<? extends JComponent> addOnComponentClass, ViewComponent context)
AddOnPresenter
activateAddOn
in interface AddOnPresenter
addOnComponentClass
- the add-on classcontext
- the view componentpublic void deactivateAddOn(Class<? extends JComponent> addOnComponentClass, ViewComponent context)
AddOnPresenter
deactivateAddOn
in interface AddOnPresenter
addOnComponentClass
- the add-on classcontext
- the view componentpublic void manageAddOn(JComponent addOn, ViewComponent context)
AddOnPresenter
manageAddOn
in interface AddOnPresenter
addOn
- the add-on classcontext
- the view componentpublic void disposeAddOn(Class<? extends JComponent> addOnComponentClass, ViewComponent context)
AddOnPresenter
disposeAddOn
in interface AddOnPresenter
addOnComponentClass
- the add-on classcontext
- the view componentpublic HashMap<ViewComponent,List<JComponent>> getAddOns()
AddOnPresenter
getAddOns
in interface AddOnPresenter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |