|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfi.hut.tml.xsmiles.gui.components.havi.HaviComponentFactory
component factory implementation for HAVI
| Nested Class Summary | |
static class |
HaviComponentFactory.MyContainer
this container also paints the background before painting children |
| Field Summary |
| Fields inherited from interface fi.hut.tml.xsmiles.gui.components.ComponentFactory |
VERTICAL_SCROLLBAR_ALWAYS, VERTICAL_SCROLLBAR_AS_NEEDED, VERTICAL_SCROLLBAR_NEVER |
| Constructor Summary | |
HaviComponentFactory()
|
|
HaviComponentFactory(BrowserWindow b)
|
|
| Method Summary | |
void |
add(XComponent c)
|
void |
addHelpListener(java.awt.Component component,
java.awt.event.ActionListener listener)
listen for all help keypresses etc, for this component and its ancestors |
static java.awt.Container |
createContainer()
|
java.awt.Container |
createContentPanel()
create a content panel for the browser, add also maybe a layout manager |
java.awt.Container |
createScrollPane(java.awt.Component comp)
create a scroll pane for this components. |
java.awt.Container |
createScrollPane(java.awt.Component arg0,
int arg1)
create a scroll pane for this components. |
CSSFormatter |
getCSSFormatter()
|
java.lang.Object |
getExtension(java.lang.Class c)
return an extension control. |
XAuthDialog |
getXAuthDialog()
|
XButton |
getXButton(java.lang.String iconUrl)
|
XButton |
getXButton(java.lang.String label,
java.lang.String iconUrl)
|
XButton |
getXButton(java.lang.String imageUrl,
java.lang.String focusedImage,
java.lang.String disabledImage)
|
XCalendar |
getXCalendar()
|
XCaption |
getXCaption(java.lang.String captText)
|
XConfirmDialog |
getXConfirmDialog()
|
XContainer |
getXContainer()
|
XDocument |
getXDocument(XLink link)
Give a XMLDocument, and get a rendered document If you are in for events, just add an actionListener and receive the XMLEvents from the component |
XFileDialog |
getXFileDialog(boolean save)
|
XFileDialog |
getXFileDialog(boolean save,
java.lang.String filename)
|
XFocusManager |
getXFocusManager()
Returns a Toolkit dependent FocusProvider |
XInput |
getXInput()
|
XLabelCompound |
getXLabelCompound(XComponent comp,
XCaption capt,
java.lang.String captSide)
|
XLinkComponent |
getXLinkComponent(java.lang.String dest)
Different GUIs have different ways of showing focus etc. |
XMedia |
getXMedia(java.net.URL u)
Give an URL and receive the mediaelement. |
XMenu |
getXMenu(java.lang.String name)
|
XMenuBar |
getXMenuBar()
|
XMenuItem |
getXMenuItem(java.lang.String name)
|
XPanel |
getXPanel()
|
XRange |
getXRange(int from,
int to,
int step,
int orientation)
|
XSecret |
getXSecret(char c)
|
XSelectBoolean |
getXSelectBoolean()
|
XSelectMany |
getXSelectMany(java.lang.String appearance,
boolean open)
|
XSelectOne |
getXSelectOne(java.lang.String appearance,
boolean open)
|
XTabbedPane |
getXTabbedPane()
|
XTextArea |
getXTextArea(java.lang.String s)
|
XUpload |
getXUpload(java.lang.String caption)
|
boolean |
hasExtension(java.lang.Class c)
query for extension availability. |
void |
remove(XComponent c)
|
void |
removeAll()
|
void |
removeHelpListener(java.awt.Component component,
java.awt.event.ActionListener listener)
remove a help listener |
void |
setScrollBar(java.awt.Container arg0,
int arg1,
int arg2)
Set scroll bar to a given position |
void |
showError(java.lang.String title,
java.lang.String explanation)
show an error dialog |
void |
showLinkPopup(java.net.URL url,
XMLDocument doc,
java.awt.event.MouseEvent e,
MLFCListener listener)
|
void |
showMessageDialog(boolean isModal,
java.lang.String title,
java.lang.String message,
long timeToLiveMillis)
|
void |
validate()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HaviComponentFactory(BrowserWindow b)
public HaviComponentFactory()
| Method Detail |
public XContainer getXContainer()
getXContainer in interface ComponentFactorypublic XLinkComponent getXLinkComponent(java.lang.String dest)
ComponentFactory
getXLinkComponent in interface ComponentFactorypublic XDocument getXDocument(XLink link)
getXDocument in interface ComponentFactorylink - The document
public XTextArea getXTextArea(java.lang.String s)
getXTextArea in interface ComponentFactorys - The intial text
public XSecret getXSecret(char c)
getXSecret in interface ComponentFactorypublic XInput getXInput()
getXInput in interface ComponentFactory
public XRange getXRange(int from,
int to,
int step,
int orientation)
getXRange in interface ComponentFactoryfrom - from whatto - to where
public XMedia getXMedia(java.net.URL u)
getXMedia in interface ComponentFactory
public XSelectOne getXSelectOne(java.lang.String appearance,
boolean open)
getXSelectOne in interface ComponentFactoryappearance - The appearance of selectone: 'minimal','compact','full'
public XSelectBoolean getXSelectBoolean()
getXSelectBoolean in interface ComponentFactory
public XSelectMany getXSelectMany(java.lang.String appearance,
boolean open)
getXSelectMany in interface ComponentFactorypublic XUpload getXUpload(java.lang.String caption)
getXUpload in interface ComponentFactorypublic XFileDialog getXFileDialog(boolean save)
getXFileDialog in interface ComponentFactory
public XFileDialog getXFileDialog(boolean save,
java.lang.String filename)
getXFileDialog in interface ComponentFactorypublic XAuthDialog getXAuthDialog()
getXAuthDialog in interface ComponentFactorypublic XConfirmDialog getXConfirmDialog()
getXConfirmDialog in interface ComponentFactory
public XButton getXButton(java.lang.String label,
java.lang.String iconUrl)
getXButton in interface ComponentFactorypublic XButton getXButton(java.lang.String iconUrl)
getXButton in interface ComponentFactory
public XButton getXButton(java.lang.String imageUrl,
java.lang.String focusedImage,
java.lang.String disabledImage)
getXButton in interface ComponentFactorypublic XCalendar getXCalendar()
public void showError(java.lang.String title,
java.lang.String explanation)
showError in interface ComponentFactory
public void showLinkPopup(java.net.URL url,
XMLDocument doc,
java.awt.event.MouseEvent e,
MLFCListener listener)
showLinkPopup in interface ComponentFactorypublic XCaption getXCaption(java.lang.String captText)
getXCaption in interface ComponentFactory
public XLabelCompound getXLabelCompound(XComponent comp,
XCaption capt,
java.lang.String captSide)
getXLabelCompound in interface ComponentFactory
public void addHelpListener(java.awt.Component component,
java.awt.event.ActionListener listener)
addHelpListener in interface ComponentFactory
public void removeHelpListener(java.awt.Component component,
java.awt.event.ActionListener listener)
removeHelpListener in interface ComponentFactorypublic java.awt.Container createContentPanel()
createContentPanel in interface ComponentFactorypublic static java.awt.Container createContainer()
public java.awt.Container createScrollPane(java.awt.Component comp)
public void add(XComponent c)
c - Add a component to the MLFC Controls container of the GUI.public void remove(XComponent c)
c - Remove a component to the MLFC Controls container of the GUI.public void removeAll()
public void validate()
public XMenuBar getXMenuBar()
getXMenuBar in interface ComponentFactorypublic XMenu getXMenu(java.lang.String name)
getXMenu in interface ComponentFactorypublic XMenuItem getXMenuItem(java.lang.String name)
getXMenuItem in interface ComponentFactory
public void showMessageDialog(boolean isModal,
java.lang.String title,
java.lang.String message,
long timeToLiveMillis)
showMessageDialog in interface ComponentFactorypublic boolean hasExtension(java.lang.Class c)
hasExtension in interface ComponentFactorypublic java.lang.Object getExtension(java.lang.Class c)
getExtension in interface ComponentFactory
public java.awt.Container createScrollPane(java.awt.Component arg0,
int arg1)
ComponentFactory
createScrollPane in interface ComponentFactory
public void setScrollBar(java.awt.Container arg0,
int arg1,
int arg2)
ComponentFactory
setScrollBar in interface ComponentFactoryarg0 - arg1 - arg2 - public XTabbedPane getXTabbedPane()
getXTabbedPane in interface ComponentFactorypublic XPanel getXPanel()
getXPanel in interface ComponentFactorypublic XFocusManager getXFocusManager()
ComponentFactory
getXFocusManager in interface ComponentFactorypublic CSSFormatter getCSSFormatter()
getCSSFormatter in interface ComponentFactory
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||