|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.gui.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.
Nested Class Summary | |
protected class |
NameBearerHandle.DumpPreserveFormatAction
The action that is fired when the user wants to dump annotations preserving the original document format. |
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. |
Constructor Summary | |
NameBearerHandle(NameBearer target,
Window window)
|
Method Summary | |
void |
addProgressListener(ProgressListener l)
|
void |
addStatusListener(StatusListener l)
|
protected void |
buildViews()
|
protected 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()
|
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
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 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 buildViews()
public String toString()
public void removeProgressListener(ProgressListener l)
public void addProgressListener(ProgressListener l)
protected void cleanup()
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
e
- public void progressChanged(int e)
ProgressListener
progressChanged
in interface ProgressListener
e
- 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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |