|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfi.hut.tml.xsmiles.gui.XSmilesUIAWT
very stripped down GUI base class that does not use swing at all All it does, is dispatch events to possible listeners
| Field Summary | |
protected BrowserWindow |
browserWindow
|
protected ContentHandlerFactory |
contentHandlerFactory
|
protected java.util.Hashtable |
focusPointProviders
|
protected java.util.Vector |
guiEventListeners
|
protected java.lang.String |
latestLoc
|
protected java.lang.String |
latestTitle
|
| Constructor Summary | |
XSmilesUIAWT(BrowserWindow b)
|
|
XSmilesUIAWT(BrowserWindow b,
java.awt.Container c)
|
|
| Method Summary | |
void |
addGUIEventListener(GUIEventListener e)
These are only to be used by the Browser class. |
void |
browserReady()
Stop animating. |
void |
browserWorking()
If a GUI has some "i'm-working-please-wait-animator", then inform the GUI, that now is a good time to start animating. |
void |
destroy()
Destroy The GUI (delete frame, etc) |
void |
displayKeypad(java.awt.Component target,
java.lang.String mode)
|
void |
fireLatestEvents()
|
abstract ComponentFactory |
getComponentFactory()
Default components. |
ContentHandlerFactory |
getContentHandlerFactory()
|
abstract MLFCControls |
getMLFCControls()
|
abstract java.awt.Window |
getWindow()
|
void |
hideKeypad()
|
boolean |
isTabbed()
Can gui accommodate several content areas within one frame |
void |
moveActiveLinkDown()
Move the highlight of the selected link down |
void |
moveActiveLinkUp()
Move the highlight of the selected link up |
void |
openInNewTab(XLink l,
java.lang.String id)
Open up a link in a new tab |
void |
openInNewWindow(XLink link,
java.lang.String id)
Open up a link in a new tab |
void |
reDrawGUI()
Cleanup GUI |
void |
registerFocusPointProvider(FocusPointsProvider fpp,
BrowserWindow bw)
|
void |
removeGUIEventListener(GUIEventListener e)
|
void |
setEnabledBack(boolean value)
|
void |
setEnabledForward(boolean value)
|
void |
setEnabledHome(boolean value)
|
void |
setEnabledReload(boolean value)
|
void |
setEnabledStop(boolean value)
|
void |
setLocation(java.lang.String s)
|
void |
setSkinsIfNeeded()
All this stuph is needed for modular skins plugin. |
void |
setSkinsIfNeeded(java.lang.String skin)
Set the skin in browser configuration file |
void |
setStatusText(java.lang.String statusText)
A refrence to the MLFCMenu (i.e. |
void |
setTitle(java.lang.String title)
|
boolean |
shouldReloadAtStartup()
|
void |
showErrorDialog(boolean isModal,
java.lang.String heading,
java.lang.String description)
Show a popup dialog, whenever something fatal occurs.. |
void |
showMessageDialog(boolean isModal,
java.lang.String title,
java.lang.String message,
long timeToLiveMillis)
GUI shows a popup error dialog. |
void |
showSource(XMLDocument doc,
int mode,
java.lang.String heading)
The modes are from XSmilesView class |
static void |
showSourceStatic(XMLDocument doc,
int mode,
java.lang.String heading)
The modes are from XSmilesView class |
void |
start()
After browser is ready, then start is called. |
void |
unRegisterFocusPointProvider(FocusPointsProvider fpp,
BrowserWindow bw)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ContentHandlerFactory contentHandlerFactory
protected BrowserWindow browserWindow
protected java.util.Vector guiEventListeners
protected java.lang.String latestLoc
protected java.lang.String latestTitle
protected java.util.Hashtable focusPointProviders
| Constructor Detail |
public XSmilesUIAWT(BrowserWindow b,
java.awt.Container c)
public XSmilesUIAWT(BrowserWindow b)
| Method Detail |
public void start()
GUI
start in interface GUIpublic void destroy()
GUI
destroy in interface GUIpublic boolean isTabbed()
GUI
isTabbed in interface GUI
public void openInNewTab(XLink l,
java.lang.String id)
GUI
openInNewTab in interface GUIid - the id of the browser to be
public void openInNewWindow(XLink link,
java.lang.String id)
openInNewWindow in interface GUIid - the id of the browser to bepublic abstract ComponentFactory getComponentFactory()
getComponentFactory in interface GUIComponentFactorypublic abstract MLFCControls getMLFCControls()
getMLFCControls in interface GUIpublic ContentHandlerFactory getContentHandlerFactory()
getContentHandlerFactory in interface GUIContentHandlerFactorypublic void addGUIEventListener(GUIEventListener e)
addGUIEventListener in interface GUIe - Attach GUIEventListener to the EventBroker.public void removeGUIEventListener(GUIEventListener e)
removeGUIEventListener in interface GUIpublic void setStatusText(java.lang.String statusText)
setStatusText in interface GUIstatusText - The text to put in status bar
public void setEnabledBack(boolean value)
setEnabledBack in interface GUIvalue - Set state of back widgetpublic void setEnabledForward(boolean value)
setEnabledForward in interface GUIvalue - Set state of forward widgetpublic void setEnabledHome(boolean value)
setEnabledHome in interface GUIvalue - Set state of home widgetpublic void setEnabledStop(boolean value)
setEnabledStop in interface GUIvalue - Set state of top widgetpublic void setEnabledReload(boolean value)
setEnabledReload in interface GUIvalue - Set state of reload widgetpublic void setTitle(java.lang.String title)
setTitle in interface GUItitle - Set title of UI framepublic void setLocation(java.lang.String s)
setLocation in interface GUIs - The location that is beeing loadedpublic void moveActiveLinkUp()
GUI
moveActiveLinkUp in interface GUIpublic void moveActiveLinkDown()
GUI
moveActiveLinkDown in interface GUI
public void displayKeypad(java.awt.Component target,
java.lang.String mode)
displayKeypad in interface GUItarget - JTextComponent to receive "virtual" key pressesmode - inputMode for text elementpublic void hideKeypad()
hideKeypad in interface GUI
public void showMessageDialog(boolean isModal,
java.lang.String title,
java.lang.String message,
long timeToLiveMillis)
GUI
showMessageDialog in interface GUIisModal - Modalitytitle - Headline of error
?@param description Description of error
public void showErrorDialog(boolean isModal,
java.lang.String heading,
java.lang.String description)
showErrorDialog in interface GUIisModal - Modalityheading - Headline of error
?@param description Description of errorpublic abstract java.awt.Window getWindow()
getWindow in interface GUIpublic void browserWorking()
browserWorking in interface GUIpublic void browserReady()
browserReady in interface GUI
public void showSource(XMLDocument doc,
int mode,
java.lang.String heading)
showSource in interface GUI
public static void showSourceStatic(XMLDocument doc,
int mode,
java.lang.String heading)
public void reDrawGUI()
reDrawGUI in interface GUIpublic void setSkinsIfNeeded(java.lang.String skin)
setSkinsIfNeeded in interface GUIskin - Set the skin to n, if possiblepublic void setSkinsIfNeeded()
public boolean shouldReloadAtStartup()
shouldReloadAtStartup in interface GUIpublic void fireLatestEvents()
fireLatestEvents in interface GUI
public void registerFocusPointProvider(FocusPointsProvider fpp,
BrowserWindow bw)
registerFocusPointProvider in interface GUI
public void unRegisterFocusPointProvider(FocusPointsProvider fpp,
BrowserWindow bw)
unRegisterFocusPointProvider in interface GUI
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||