public abstract class AbstractPerspective extends AbstractExtensionImplementation implements Perspective
rcs_id
rcs_id
Constructor and Description |
---|
AbstractPerspective() |
Modifier and Type | Method and Description |
---|---|
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() |
getExtension, getPlugIn, popContextClassLoader, pushContextClassLoader, setExtension
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getImageURL, getLogoImageURL, getTitle, getToolbar, getView, getViewLabel, getViewValues, getWorkplaceDefaultLayout, setView, setWorkplaceContext
getExtension, getPlugIn, popContextClassLoader, pushContextClassLoader, setExtension
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 perspectivepublic 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 loginrequiresInitialCallReactOnSwitchSelectedPerspective
in interface Perspective
ac
- ApplicationContext instancereactOnSwitchSelectedPerspective
on user login otherwise false