|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfi.hut.tml.xsmiles.gui.components.swing.SwingContainer
The only addition is add and remove Utilize the componentWithcontainer
| Field Summary | |
protected java.awt.Container |
container
|
| Constructor Summary | |
SwingContainer()
|
|
| Method Summary | |
void |
add(java.awt.Component c)
|
void |
add(XComponent comp)
|
void |
addActionListener(java.awt.event.ActionListener al)
At the moment ALL events are delegated through a simple actionListener |
void |
addFocusListener(java.awt.event.FocusListener fl)
|
void |
addHelpListener(java.awt.event.ActionListener fl)
add a listener for help events |
void |
addMouseListener(java.awt.event.MouseListener fl)
|
boolean |
getActionable()
By default components are inactive |
java.awt.Component |
getComponent()
Return the visual component for this extension element |
boolean |
getEnabled()
|
int |
getHeight()
|
java.awt.Dimension |
getSize()
Returns the approximate size of this extension element |
org.w3c.dom.css.CSSStyleDeclaration |
getStyle()
gets the css style |
int |
getWidth()
|
int |
getX()
|
int |
getY()
|
void |
remove(java.awt.Component c)
|
void |
remove(XComponent c)
|
void |
removeActionListener(java.awt.event.ActionListener al)
|
void |
removeAll()
Remove all components from conatiner. |
void |
removeFocusListener(java.awt.event.FocusListener fl)
|
void |
removeHelpListener(java.awt.event.ActionListener fl)
remove a listener for help events |
void |
removeMouseListener(java.awt.event.MouseListener fl)
|
void |
setActionable(boolean a)
|
void |
setBackground(java.awt.Color bg)
set the background, if null, then reset to default |
void |
setBounds(int x,
int y,
int width,
int height)
Set the bounds of Container |
void |
setEnabled(boolean b)
|
void |
setFocus()
set the focus to this control |
void |
setForeground(java.awt.Color fg)
|
void |
setHintText(java.lang.String text)
set the hint text |
void |
setInputMode(java.lang.String inputmode)
set the input mode attribute (from XForms) |
void |
setStyle(org.w3c.dom.css.CSSStyleDeclaration style)
sets the CSS style for this component. |
void |
setVisible(boolean v)
Set this drawing area visible. |
void |
setZoom(double zoom)
Returns the approximate size of this extension element |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.awt.Container container
| Constructor Detail |
public SwingContainer()
| Method Detail |
public boolean getActionable()
public void setActionable(boolean a)
a - The value of actionablepublic void remove(XComponent c)
remove in interface XContainerc - Remove component cpublic void removeAll()
removeAll in interface XContainerpublic void add(XComponent comp)
add in interface XContainercomp - The component to be addedpublic void setZoom(double zoom)
setZoom in interface XComponentpublic void add(java.awt.Component c)
add in interface XContainerc - The component to be addedpublic void remove(java.awt.Component c)
remove in interface XContainerc - The component to be addedpublic void setStyle(org.w3c.dom.css.CSSStyleDeclaration style)
XComponent
setStyle in interface XComponentpublic org.w3c.dom.css.CSSStyleDeclaration getStyle()
XComponent
getStyle in interface XComponentpublic void setVisible(boolean v)
XComponent
setVisible in interface XComponentv - true=visible, false=invisiblepublic void setEnabled(boolean b)
setEnabled in interface XComponentb - Active or not active
public void setBounds(int x,
int y,
int width,
int height)
XComponent
setBounds in interface XComponentx - X locationy - X locationwidth - X locationheight - X locationpublic int getX()
getX in interface XComponentpublic int getY()
getY in interface XComponentpublic int getWidth()
getWidth in interface XComponentpublic int getHeight()
getHeight in interface XComponentpublic void setHintText(java.lang.String text)
XComponent
setHintText in interface XComponentpublic void addActionListener(java.awt.event.ActionListener al)
XComponent
addActionListener in interface XComponental - Add the actionlistenerpublic void removeActionListener(java.awt.event.ActionListener al)
removeActionListener in interface XComponentpublic void addFocusListener(java.awt.event.FocusListener fl)
addFocusListener in interface XComponentpublic void removeFocusListener(java.awt.event.FocusListener fl)
removeFocusListener in interface XComponentpublic void addMouseListener(java.awt.event.MouseListener fl)
addMouseListener in interface XComponentpublic void removeMouseListener(java.awt.event.MouseListener fl)
removeMouseListener in interface XComponentpublic void addHelpListener(java.awt.event.ActionListener fl)
XComponent
addHelpListener in interface XComponentpublic void removeHelpListener(java.awt.event.ActionListener fl)
XComponent
removeHelpListener in interface XComponentpublic java.awt.Component getComponent()
XComponent
getComponent in interface XComponentpublic java.awt.Dimension getSize()
XComponent
getSize in interface XComponentpublic void setBackground(java.awt.Color bg)
XComponent
setBackground in interface XComponentpublic void setForeground(java.awt.Color fg)
setForeground in interface XComponentpublic void setInputMode(java.lang.String inputmode)
XComponent
setInputMode in interface XComponentpublic void setFocus()
XComponent
setFocus in interface XComponentpublic boolean getEnabled()
getEnabled in interface XComponent
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||