|
||||||||||
| 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<ActionsPublisher> |
actionPublishers
Stores all the action providers for this resource. |
protected CorpusFillerComponent |
corpusFiller
Component used to select the options for corpus populating |
(package private) Icon |
icon
|
(package private) JComponent |
largeView
|
private Vector<ProgressListener> |
progressListeners
|
(package private) ResourceData |
rData
|
protected SingleConcatenatedFileInputDialog |
scfInputDialog
|
(package private) StatusListener |
sListenerProxy
|
(package private) JComponent |
smallView
|
protected List<XJMenuItem> |
staticPopupItems
A list of menu items that constitute the static part of the popup. |
private Vector<StatusListener> |
statusListeners
|
(package private) NameBearer |
target
|
(package private) String |
tooltipText
|
protected boolean |
viewsBuilt
|
(package private) Window |
window
The top level GUI component this handle belongs to. |
| 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 |
private void |
fillHMMActions(List<XJMenuItem> popupItems)
Fill HMM Save and Save As... actions |
protected void |
fireProcessFinished()
|
protected void |
fireProgressChanged(int e)
|
protected void |
fireStatusChanged(String e)
|
Action |
getCloseAction()
|
Action |
getCloseRecursivelyAction()
|
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. |
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 |
removeViews()
A call to this method will cause the handle to destroy all the views built for the target resource. |
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 |
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 |
|---|
String tooltipText
NameBearer target
protected List<ActionsPublisher> actionPublishers
protected List<XJMenuItem> staticPopupItems
Window window
ResourceData rData
Icon icon
JComponent smallView
JComponent largeView
protected boolean viewsBuilt
protected CorpusFillerComponent corpusFiller
protected SingleConcatenatedFileInputDialog scfInputDialog
StatusListener sListenerProxy
private transient Vector<ProgressListener> progressListeners
private transient Vector<StatusListener> statusListeners
| 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 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()
public Action getCloseRecursivelyAction()
private void fillHMMActions(List<XJMenuItem> popupItems)
protected void buildStaticPopupItems()
protected void buildViews()
public String toString()
toString in class Objectpublic void removeProgressListener(ProgressListener l)
public void addProgressListener(ProgressListener l)
public void removeViews()
Handle
removeViews in interface Handlepublic 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||