|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwareag.cis.plugin.extpt.util.AbstractExtensionImplementation
com.softwareag.cis.plugin.extpt.util.AbstractPerspective
public abstract class AbstractPerspective
Field Summary | |
---|---|
static java.lang.String |
rcs_id
|
Constructor Summary | |
---|---|
AbstractPerspective()
|
Method Summary | |
---|---|
void |
addTopic(Topic topic)
Add topic to the current perspective |
boolean |
containsTopic(Topic topic)
Test whether given topic belongs to this perspective |
java.lang.String |
getId()
|
Topic |
getSelectedTopic()
Get the currently selected topic |
java.lang.String |
getSingleClickMethodName()
returns the method name that should be called in case the perspective has no topic and should some event should be fired on Perspective selection. |
java.util.List |
getTopics()
Get all topics |
boolean |
hasTopicTree()
A topic may provide for a tree (eg. for adavanced navigation). |
boolean |
isEnabled()
|
boolean |
isSingeClickable()
return false by Default, because perspective should contains topic |
boolean |
isVisible()
|
boolean |
isVisible(WorkplaceContext wc)
Check whether given perspective should be visible within the passed WorkplaceContext. |
void |
reactOnSwitchSelectedPerspective(Perspective oldPerspective,
Perspective newPerspective)
Notify perspective about change of visible perspective - override in subclass if required |
boolean |
requiresInitialCallReactOnSwitchSelectedPerspective(ApplicationContext ac)
By default method reactOnSwitchSelectedPerspective is called
on user selection only. |
void |
setEnabled(boolean enabled)
|
void |
setSelectedTopic(Topic topic)
Set the currently selected topic |
void |
setVisible(boolean visible)
|
boolean |
supportsViews()
Check whether this Perspective supports a view selection list box |
java.lang.String |
toString()
|
Methods inherited from class com.softwareag.cis.plugin.extpt.util.AbstractExtensionImplementation |
---|
getExtension, getPlugIn, popContextClassLoader, pushContextClassLoader, setExtension |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.softwareag.cis.plugin.extpt.Perspective |
---|
getImageURL, getLogoImageURL, getTitle, getToolbar, getView, getViewLabel, getViewValues, getWorkplaceDefaultLayout, setView, setWorkplaceContext |
Methods inherited from interface com.softwareag.cis.plugin.registry.ExtensionImplementation |
---|
getExtension, getPlugIn, popContextClassLoader, pushContextClassLoader, setExtension |
Field Detail |
---|
public static final java.lang.String rcs_id
Constructor Detail |
---|
public AbstractPerspective()
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getId()
getId
in interface com.softwareag.cis.plugin.interfaces.Component
Component.getId()
public final void addTopic(Topic topic)
addTopic
in interface Perspective
topic
- - topic to be addedpublic final java.util.List getTopics()
getTopics
in interface Perspective
public final boolean containsTopic(Topic topic)
Perspective
containsTopic
in interface Perspective
topic
- - check if such topic exists in the current perspective
public boolean isVisible()
isVisible
in interface com.softwareag.cis.plugin.interfaces.Component
public boolean isVisible(WorkplaceContext wc)
Perspective
isVisible
in interface Perspective
wc
- The WorkplaceContext.
Component.isVisible()
public void setVisible(boolean visible)
setVisible
in interface com.softwareag.cis.plugin.interfaces.Component
Component.setVisible(boolean)
public boolean isEnabled()
isEnabled
in interface com.softwareag.cis.plugin.interfaces.Component
Component.isEnabled()
public void setEnabled(boolean enabled)
setEnabled
in interface com.softwareag.cis.plugin.interfaces.Component
Component.setEnabled(boolean)
public void setSelectedTopic(Topic topic)
setSelectedTopic
in interface Perspective
topic
- - the topic to be marked as selectedpublic Topic getSelectedTopic()
getSelectedTopic
in interface Perspective
public void reactOnSwitchSelectedPerspective(Perspective oldPerspective, Perspective newPerspective)
reactOnSwitchSelectedPerspective
in interface Perspective
oldPerspective
- the perspective which was visible before, null if nonenewPerspective
- the perspective to become visiblepublic boolean supportsViews()
supportsViews
in interface Perspective
public boolean isSingeClickable()
isSingeClickable
in interface Perspective
public java.lang.String getSingleClickMethodName()
getSingleClickMethodName
in interface Perspective
public boolean hasTopicTree()
hasTopicTree
in interface Perspective
public boolean requiresInitialCallReactOnSwitchSelectedPerspective(ApplicationContext ac)
reactOnSwitchSelectedPerspective
is called
on user selection only. Use this method to indicate that your perspective
needs to have that notification callback also on user login
requiresInitialCallReactOnSwitchSelectedPerspective
in interface Perspective
ac
- ApplicationContext instance
reactOnSwitchSelectedPerspective
on user login otherwise false
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |