|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.princeton.wordnet.browser.Controller
edu.princeton.wordnet.browser.UI
public class UI
Browser main frame
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class edu.princeton.wordnet.browser.Controller |
|---|
Controller.Code |
| Field Summary | |
|---|---|
private javax.swing.event.HyperlinkListener |
hyperlinkPressed
|
private static org.apache.log4j.Logger |
LOG
|
private static long |
serialVersionUID
|
private SmartCheckBoxMenuItem |
theConsoleMenuItem
Smart button |
private javax.swing.JComboBox |
theEditor
Editor |
private java.awt.Component |
theHome
Home component |
private javax.swing.JLabel |
theIconStatus
Status icon container |
private javax.swing.JFrame |
theMainFrame
|
private javax.swing.JProgressBar |
theProgress
Progress |
private javax.swing.JLabel |
theStatus
Status |
private javax.swing.JTabbedPane |
theTabbedPane
Tabbed pane |
| Fields inherited from class edu.princeton.wordnet.browser.Controller |
|---|
theSettings |
| Constructor Summary | |
|---|---|
UI(java.lang.String[] theseArgs)
Constructor |
|
| Method Summary | |
|---|---|
protected void |
addHistory(java.lang.String thisLookup)
Add lookup to history |
protected boolean |
confirm(java.lang.String[] thisMessage)
Confirm |
protected java.beans.PropertyChangeListener |
getConsolePropertyListener()
Get console property listener |
protected java.lang.String |
getLookup()
Get lookup |
protected TreeView |
getTreeView()
Get selected treeview |
protected java.util.List<TreeView> |
getTreeViews()
Get tree views |
protected void |
handlePopup(java.awt.event.MouseEvent e,
java.awt.event.ActionListener thisPopupActionListener)
Handle popup trigger |
protected void |
internalHelp()
Help as tab |
private java.awt.Component |
makeBrowserPane(java.net.URL thisUrl)
Make HTML pane |
private javax.swing.JButton |
makeButton(java.lang.String thisText,
java.lang.String thisTooltip,
java.lang.String thisImage,
Controller.Code thisCode)
Make button |
private SmartCheckBoxMenuItem |
makeCheckboxItem(java.lang.String thisText,
java.lang.String thisImage,
Controller.Code thisCommand,
int thisAcceleratorKey,
java.lang.String thisProperty,
boolean thisState)
Make checkbox menu item |
private java.awt.Component |
makeHome()
Make home pane |
protected HtmlView |
makeHtmlView(java.lang.String thisLookup,
java.lang.String thisTooltip)
Make Html view |
private javax.swing.JMenuBar |
makeMenuBar()
Make menu bar |
private javax.swing.JMenuItem |
makeMenuItem(java.lang.String thisText,
java.lang.String thisImage,
Controller.Code thisCommand,
int thisAcceleratorKey)
Make menu item |
protected javax.swing.JPopupMenu |
makePopup(java.awt.event.ActionListener thisPopupActionListener)
Make popup |
private java.awt.Component |
makeStatusbar(java.awt.Component thisEastComponent,
java.awt.Component thisCenterComponent,
java.awt.Component thisWestComponent)
Make status bar |
private void |
makeTab(java.awt.Component thisComponent,
java.lang.String thisTitle,
java.lang.String thisToolTip)
Make tabbed component |
protected void |
makeTextView(java.lang.String thisLookup,
java.lang.String thisTooltip,
java.lang.String thisText)
Make text view |
private javax.swing.JToolBar |
makeToolbar()
Make toolbar |
protected void |
makeTreeView(TreeView thisTreeView,
java.lang.String thisLookup,
java.lang.String thisTooltip,
javax.swing.tree.TreeModel thisTreeModel)
Make tree view |
protected void |
quit()
Quit |
protected void |
reportClientError(java.lang.Throwable thisThrowable)
Report Client Error |
protected void |
reportException(java.lang.Exception thisException)
Report Exception |
protected void |
setConnected(boolean connected)
Set status connected |
protected void |
setSearching(boolean searching)
Set status searching |
protected void |
setStatus(java.lang.String thisMessage)
Set status |
| Methods inherited from class edu.princeton.wordnet.browser.Controller |
|---|
execute, lookup, lookup, lookupXml, lookupXmlRaw, mangle, start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private static final org.apache.log4j.Logger LOG
private final javax.swing.JFrame theMainFrame
private javax.swing.JTabbedPane theTabbedPane
private javax.swing.JComboBox theEditor
private final javax.swing.JLabel theStatus
private final javax.swing.JLabel theIconStatus
private final javax.swing.JProgressBar theProgress
private final java.awt.Component theHome
private SmartCheckBoxMenuItem theConsoleMenuItem
private final javax.swing.event.HyperlinkListener hyperlinkPressed
| Constructor Detail |
|---|
public UI(java.lang.String[] theseArgs) throws java.io.IOException
theseArgs - command line arguments
java.io.IOException| Method Detail |
|---|
private java.awt.Component makeHome()
private javax.swing.JToolBar makeToolbar()
private javax.swing.JButton makeButton(java.lang.String thisText,
java.lang.String thisTooltip,
java.lang.String thisImage,
Controller.Code thisCode)
thisText - textthisTooltip - tooltipthisImage - imagethisCode - exceution code
private java.awt.Component makeStatusbar(java.awt.Component thisEastComponent,
java.awt.Component thisCenterComponent,
java.awt.Component thisWestComponent)
thisEastComponent - east componentthisCenterComponent - center componentthisWestComponent - west component
private javax.swing.JMenuBar makeMenuBar()
private javax.swing.JMenuItem makeMenuItem(java.lang.String thisText,
java.lang.String thisImage,
Controller.Code thisCommand,
int thisAcceleratorKey)
thisText - textthisImage - imagethisCommand - command codethisAcceleratorKey - accelerator key
private SmartCheckBoxMenuItem makeCheckboxItem(java.lang.String thisText,
java.lang.String thisImage,
Controller.Code thisCommand,
int thisAcceleratorKey,
java.lang.String thisProperty,
boolean thisState)
thisText - textthisImage - imagethisCommand - command codethisAcceleratorKey - accelerator keythisState - initial state
private java.awt.Component makeBrowserPane(java.net.URL thisUrl)
private void makeTab(java.awt.Component thisComponent,
java.lang.String thisTitle,
java.lang.String thisToolTip)
thisComponent - thisTitle - thisToolTip -
protected void handlePopup(java.awt.event.MouseEvent e,
java.awt.event.ActionListener thisPopupActionListener)
e - mouse eventthisPopupActionListener - popup action listenerprotected javax.swing.JPopupMenu makePopup(java.awt.event.ActionListener thisPopupActionListener)
thisPopupActionListener - popup action listener
protected void makeTextView(java.lang.String thisLookup,
java.lang.String thisTooltip,
java.lang.String thisText)
Controller
makeTextView in class ControllerthisLookup - titlethisTooltip - tooltipthisText - text
protected HtmlView makeHtmlView(java.lang.String thisLookup,
java.lang.String thisTooltip)
Controller
makeHtmlView in class ControllerthisLookup - titlethisTooltip - tooltip
protected void makeTreeView(TreeView thisTreeView,
java.lang.String thisLookup,
java.lang.String thisTooltip,
javax.swing.tree.TreeModel thisTreeModel)
Controller
makeTreeView in class ControllerthisTreeView - treeviewthisLookup - titlethisTooltip - tooltipthisTreeModel - treemodelprotected boolean confirm(java.lang.String[] thisMessage)
Controller
confirm in class ControllerthisMessage - message
protected void reportClientError(java.lang.Throwable thisThrowable)
Controller
reportClientError in class ControllerthisThrowable - Throwableprotected void reportException(java.lang.Exception thisException)
Controller
reportException in class ControllerthisException - Exceptionprotected void internalHelp()
internalHelp in class Controllerprotected java.lang.String getLookup()
Controller
getLookup in class Controllerprotected void addHistory(java.lang.String thisLookup)
Controller
addHistory in class Controllerprotected TreeView getTreeView()
Controller
getTreeView in class Controllerprotected java.util.List<TreeView> getTreeViews()
Controller
getTreeViews in class Controllerprotected void setSearching(boolean searching)
Controller
setSearching in class Controllersearching - whether client is searchingprotected void setStatus(java.lang.String thisMessage)
Controller
setStatus in class ControllerthisMessage - messageprotected void setConnected(boolean connected)
Controller
setConnected in class Controllerconnected - whether client is connectedprotected void quit()
Controller
quit in class Controllerprotected java.beans.PropertyChangeListener getConsolePropertyListener()
Controller
getConsolePropertyListener in class Controller
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||