|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cern.stopmi.OPGeneric.OPController
Title: Description: Copyright: Copyright (c) 2001 Company:
Constructor Summary | |
OPController()
|
Method Summary | |
void |
addListenersNeeded(java.awt.Container panel)
Add ALL listeners defined by this controller to ALL components found in the given panel. |
void |
addListenersNeeded(java.awt.Container panel,
java.lang.Class[] listeners)
Add the given listeners, if defined by this controller, to ALL components found in the given panel. |
void |
addListenersNeeded(java.util.Vector theBeans)
Add ALL listeners defined by this controller to the components contained in the given vector |
void |
addListenersNeeded(java.util.Vector theBeans,
java.lang.Class[] listeners)
Add the given listeners, if defined by this controller, to ALL components in the given vector of components |
void |
addObjectReference(java.lang.Object o)
Add a reference to an arbitary object. |
java.lang.Object |
getObject(java.lang.Class toSearchFor)
Get a previously registered Object This function would normally be used from within the code for the listener itself to act on an arbitary Object |
OPPanel |
getOPPanel(java.lang.Class toSearchFor)
Convenience function to extract a previously registered OPPanel. |
OPPanel |
getOPPanel(java.lang.Object object)
Get the OPPanel which is the registered 'parent' of the given Object in the visual hierarchy. |
static void |
setIsDebug(boolean f)
If the controller is set to dubug (static class variable), windows showing 'controlled' objects will be displayed for each subsequent instantiation of OPController |
void |
setRegisterSubPanels(boolean f)
When a panel is added to the controller, you have the option to disable recursion through sub-panels. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public OPController()
Method Detail |
public static void setIsDebug(boolean f)
f
- true if debug is set, else false (false by default)public void setRegisterSubPanels(boolean f)
f
- true if 'inner' panels should be searchedpublic void addObjectReference(java.lang.Object o)
o
- the objectpublic void addListenersNeeded(java.awt.Container panel)
panel
- the panel to be searchedpublic void addListenersNeeded(java.awt.Container panel, java.lang.Class[] listeners)
panel
- the panel to be searchedlisteners
- an array of listeners to add to found componentspublic void addListenersNeeded(java.util.Vector theBeans)
theBeans
- a vector containing the target componentspublic void addListenersNeeded(java.util.Vector theBeans, java.lang.Class[] listeners)
theBeans
- the target componentslisteners
- an array of listeners to add to given componentspublic OPPanel getOPPanel(java.lang.Class toSearchFor)
toSearchFor
- class to search forpublic java.lang.Object getObject(java.lang.Class toSearchFor)
toSearchFor
- class to search forpublic OPPanel getOPPanel(java.lang.Object object)
object
- the JComponent to get parent of
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |