|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.taverna.perspectives.AbstractPerspective
public abstract class AbstractPerspective
An abstract implementation of a perspective that handles the storing of the layout XML if modified via the 'update' method, which once set causes this XML to be used rather than the bundled resource. Concrete subclass should provide getText, getButtonIcon, and getLayoutResourceStream.
| Constructor Summary | |
|---|---|
AbstractPerspective()
|
|
| Method Summary | |
|---|---|
abstract javax.swing.ImageIcon |
getButtonIcon()
The icon for the perspective |
java.io.InputStream |
getLayoutInputStream()
|
abstract java.lang.String |
getText()
The name of the perspective |
boolean |
isVisible()
returns true if the perspective is set to be visible |
int |
positionHint()
Position hint, default to 101, meaning that perspective that don't provide a hint will always appear towards the end (Built-in perspectives coming first in a controlled order). |
void |
setVisible(boolean visible)
sets whether the perspective should be visible or not. |
void |
update(org.jdom.Element layoutElement)
Store internally any changes to the layout xml |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractPerspective()
| Method Detail |
|---|
public java.io.InputStream getLayoutInputStream()
getLayoutInputStream in interface PerspectiveSPIpublic void update(org.jdom.Element layoutElement)
PerspectiveSPI
update in interface PerspectiveSPIpublic abstract java.lang.String getText()
getText in interface PerspectiveSPIpublic abstract javax.swing.ImageIcon getButtonIcon()
getButtonIcon in interface PerspectiveSPIpublic int positionHint()
positionHint in interface PerspectiveSPIpublic boolean isVisible()
PerspectiveSPI
isVisible in interface PerspectiveSPIpublic void setVisible(boolean visible)
PerspectiveSPI
setVisible in interface PerspectiveSPI
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||