|
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 Handlepublic void setIcon(Icon icon)
public String getTitle()
getTitle in interface Handlepublic void setTitle(String newTitle)
public boolean viewsBuilt()
viewsBuilt in interface Handlepublic JComponent getSmallView()
getSmallView in interface Handlepublic JComponent getLargeView()
getLargeView in interface Handlepublic JPopupMenu getPopup()
getPopup in interface Handlepublic String getTooltipText()
getTooltipText in interface Handlepublic void setTooltipText(String text)
public Object getTarget()
getTarget in interface Handlepublic Action getCloseAction()
protected void buildStaticPopupItems()
protected void buildViews()
public String toString()
toString in class Objectpublic void removeProgressListener(ProgressListener l)
public void addProgressListener(ProgressListener l)
public void cleanup()
cleanup in interface Handleprotected 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 StatusListenerpublic void progressChanged(int e)
ProgressListener
progressChanged in interface ProgressListenerpublic void processFinished()
ProgressListener
processFinished in interface ProgressListenerpublic Window getWindow()
Handle
getWindow in interface Handlepublic void resourceLoaded(CreoleEvent e)
CreoleListenerResource has been loaded into the system
resourceLoaded in interface CreoleListenerpublic void resourceUnloaded(CreoleEvent e)
CreoleListenerResource has been removed from the system
resourceUnloaded in interface CreoleListener
public void resourceRenamed(Resource resource,
String oldName,
String newName)
CreoleListener
resourceRenamed in interface CreoleListenerpublic void datastoreOpened(CreoleEvent e)
CreoleListenerDataStore has been opened
datastoreOpened in interface CreoleListenerpublic void datastoreCreated(CreoleEvent e)
CreoleListenerDataStore has been created
datastoreCreated in interface CreoleListenerpublic void datastoreClosed(CreoleEvent e)
CreoleListenerDataStore 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 | |||||||||