fi.hut.tml.xsmiles.gui.gui2.awt
Class GUITab
java.lang.Object
fi.hut.tml.xsmiles.gui.gui2.awt.GUITab
- All Implemented Interfaces:
- GUIEventListener
- public class GUITab
- extends java.lang.Object
- implements GUIEventListener
The GUITab contains one tab.
Each tab has
- the action container (back, forward buttons, the url area)
- one browser window in the center
- the status area in the bottom
The GUITab can be extended by subclasses to suit different platforms
GUITab is created with the method AWTGUI.createTab()
- Author:
- honkkis
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
initialURL
public XLink initialURL
dialog
protected XSmilesDialog dialog
gui
protected AWTGUI gui
browserWindow
public Browser browserWindow
actionContainer
public java.awt.Container actionContainer
- The structure of the containers :
-------------------------------------------------
Menu
-------------------------------------------------
actionContainer
(BorderLayout.NORTH)
------------------------------------------------
BrowserWindow.contentArea() (BorderLayout.CENTER)
------------------------------------------------
statusContainer
(BorderLayout.SOUTH)
statusContainer
public java.awt.Container statusContainer
rootContainer
public java.awt.Container rootContainer
status
public XCaption status
backUrl
public java.lang.String backUrl
forwardUrl
public java.lang.String forwardUrl
homeUrl
public java.lang.String homeUrl
reloadUrl
public java.lang.String reloadUrl
stopUrl
public java.lang.String stopUrl
animationWidth
public int animationWidth
animationHeight
public int animationHeight
locationField
protected XInput locationField
topContainer
protected java.awt.Container topContainer
backButton
protected XButton backButton
forwardButton
protected XButton forwardButton
homeButton
protected XButton homeButton
reloadButton
protected XButton reloadButton
stopButton
protected XButton stopButton
animation
protected Animation animation
GUITab
public GUITab(AWTGUI agui)
changeGUIElements
public void changeGUIElements(java.lang.String backUrl,
java.lang.String forwardUrl,
java.lang.String homeUrl,
java.lang.String reloadUrl,
int animationWidth,
int animationHeight)
createRootContainer
protected void createRootContainer()
setInitialURL
public void setInitialURL(XLink url)
setID
public void setID(java.lang.String i)
getComponent
public java.awt.Component getComponent()
getBrowserWindow
public BrowserWindow getBrowserWindow()
init
public void init()
destroy
public void destroy()
- Specified by:
destroy in interface GUIEventListener
createBrowserWindow
protected void createBrowserWindow()
createBrowserListeners
public void createBrowserListeners()
decorateGUI
public void decorateGUI()
createActionContainer
public void createActionContainer()
createContainer
protected java.awt.Container createContainer()
getActionFont
protected java.awt.Font getActionFont()
getStatusFont
protected java.awt.Font getStatusFont()
createStatusContainer
public void createStatusContainer()
addMLFCControls
protected void addMLFCControls()
removeMLFCControls
protected void removeMLFCControls()
createLocation
protected java.awt.Component createLocation()
loadLocation
public void loadLocation(java.lang.String location)
createActionButton
protected XButton createActionButton(java.lang.String name,
java.lang.String icon,
java.lang.String actionCommand)
getContentArea
public java.awt.Container getContentArea()
getRootContainer
protected java.awt.Container getRootContainer()
start
public void start()
- the GUI event listener interface
- Specified by:
start in interface GUIEventListener
openInNewTab
public void openInNewTab(XLink l,
java.lang.String id)
- Specified by:
openInNewTab in interface GUIEventListener
openInNewWindow
public void openInNewWindow(XLink l,
java.lang.String id)
- Specified by:
openInNewWindow in interface GUIEventListener
setStatusText
public void setStatusText(java.lang.String statusText)
- Specified by:
setStatusText in interface GUIEventListener
setEnabledBack
public void setEnabledBack(boolean value)
- Specified by:
setEnabledBack in interface GUIEventListener
setEnabledForward
public void setEnabledForward(boolean value)
- Specified by:
setEnabledForward in interface GUIEventListener
setEnabledHome
public void setEnabledHome(boolean value)
- Specified by:
setEnabledHome in interface GUIEventListener
setEnabledStop
public void setEnabledStop(boolean value)
- Specified by:
setEnabledStop in interface GUIEventListener
setEnabledReload
public void setEnabledReload(boolean value)
- Specified by:
setEnabledReload in interface GUIEventListener
setTitle
public void setTitle(java.lang.String title)
- Specified by:
setTitle in interface GUIEventListener
setLocation
public void setLocation(java.lang.String s)
- Specified by:
setLocation in interface GUIEventListener
browserWorking
public void browserWorking()
- Specified by:
browserWorking in interface GUIEventListener
GUIEvent
public void GUIEvent(GUIEvent ev)
- Specified by:
GUIEvent in interface GUIEventListener
browserReady
public void browserReady()
- Specified by:
browserReady in interface GUIEventListener
hideGUIButtons
protected void hideGUIButtons()
showGUIButtons
protected void showGUIButtons()
X-Smiles 1.2