|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.gui.NameBearerHandle
public class NameBearerHandle
Class used to store the GUI information about an open entity (resource, controller, datastore). Such information will include icon to be used for tree components, popup menu for right click events, large and small views, etc.
Field Summary | |
---|---|
protected List |
actionPublishers
Stores all the action providers for this resource. |
protected List |
staticPopupItems
A list of menu items that constitute the static part of the popup. |
protected boolean |
viewsBuilt
|
Constructor Summary | |
---|---|
NameBearerHandle(NameBearer target,
Window window)
|
Method Summary | |
---|---|
void |
addProgressListener(ProgressListener l)
|
void |
addStatusListener(StatusListener l)
|
protected void |
buildStaticPopupItems()
|
protected void |
buildViews()
|
void |
cleanup()
Releases the memory, removes the listeners, cleans up. |
void |
datastoreClosed(CreoleEvent e)
Called when a DataStore has been closed |
void |
datastoreCreated(CreoleEvent e)
Called when a DataStore has been created |
void |
datastoreOpened(CreoleEvent e)
Called when a DataStore has been opened |
protected void |
fireProcessFinished()
|
protected void |
fireProgressChanged(int e)
|
protected void |
fireStatusChanged(String e)
|
Action |
getCloseAction()
|
Icon |
getIcon()
|
JComponent |
getLargeView()
Returns the large view for this resource. |
JPopupMenu |
getPopup()
|
JComponent |
getSmallView()
Returns a GUI component to be used as a small viewer/editor, e.g. below the main tree in the Gate GUI for the selected resource |
Object |
getTarget()
|
String |
getTitle()
|
String |
getTooltipText()
|
Window |
getWindow()
Returns the top level GUI component that is a parent to all other GUI components |
void |
processFinished()
Called when the process is finished. |
void |
progressChanged(int e)
Called when the progress has changed |
void |
removeProgressListener(ProgressListener l)
|
void |
removeStatusListener(StatusListener l)
|
void |
resourceLoaded(CreoleEvent e)
Called when a new Resource has been loaded into the system |
void |
resourceRenamed(Resource resource,
String oldName,
String newName)
Called when the creole register has renamed a resource.1 |
void |
resourceUnloaded(CreoleEvent e)
Called when a Resource has been removed from the system |
void |
setIcon(Icon icon)
|
void |
setTitle(String newTitle)
|
void |
setTooltipText(String text)
|
void |
statusChanged(String e)
Calleed when there a new status message. |
String |
toString()
|
boolean |
viewsBuilt()
Returns true if the views have already been built for this handle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected List actionPublishers
protected List staticPopupItems
protected boolean viewsBuilt
Constructor Detail |
---|
public NameBearerHandle(NameBearer target, Window window)
Method Detail |
---|
public Icon getIcon()
getIcon
in interface Handle
public void setIcon(Icon icon)
public String getTitle()
getTitle
in interface Handle
public void setTitle(String newTitle)
public boolean viewsBuilt()
viewsBuilt
in interface Handle
public JComponent getSmallView()
getSmallView
in interface Handle
public JComponent getLargeView()
getLargeView
in interface Handle
public JPopupMenu getPopup()
getPopup
in interface Handle
public String getTooltipText()
getTooltipText
in interface Handle
public void setTooltipText(String text)
public Object getTarget()
getTarget
in interface Handle
public Action getCloseAction()
protected void buildStaticPopupItems()
protected void buildViews()
public String toString()
toString
in class Object
public void removeProgressListener(ProgressListener l)
public void addProgressListener(ProgressListener l)
public void cleanup()
cleanup
in interface Handle
protected void fireProgressChanged(int e)
protected void fireProcessFinished()
public void removeStatusListener(StatusListener l)
public void addStatusListener(StatusListener l)
protected void fireStatusChanged(String e)
public void statusChanged(String e)
StatusListener
statusChanged
in interface StatusListener
public void progressChanged(int e)
ProgressListener
progressChanged
in interface ProgressListener
public void processFinished()
ProgressListener
processFinished
in interface ProgressListener
public Window getWindow()
Handle
getWindow
in interface Handle
public void resourceLoaded(CreoleEvent e)
CreoleListener
Resource
has been loaded into the system
resourceLoaded
in interface CreoleListener
public void resourceUnloaded(CreoleEvent e)
CreoleListener
Resource
has been removed from the system
resourceUnloaded
in interface CreoleListener
public void resourceRenamed(Resource resource, String oldName, String newName)
CreoleListener
resourceRenamed
in interface CreoleListener
public void datastoreOpened(CreoleEvent e)
CreoleListener
DataStore
has been opened
datastoreOpened
in interface CreoleListener
public void datastoreCreated(CreoleEvent e)
CreoleListener
DataStore
has been created
datastoreCreated
in interface CreoleListener
public void datastoreClosed(CreoleEvent e)
CreoleListener
DataStore
has been closed
datastoreClosed
in interface CreoleListener
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |