|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfi.hut.tml.xsmiles.gui.components.XComponentWrapper
| Field Summary | |
java.awt.Component |
comp
|
java.awt.Color |
defaultColor
|
CSSFormatter |
formatter
|
| Constructor Summary | |
XComponentWrapper(java.awt.Component aComp,
CSSFormatter aFormatter,
java.awt.Color aDefaultColor)
|
|
| Method Summary | |
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)
|
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 |
removeActionListener(java.awt.event.ActionListener al)
|
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 |
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)
set the zoom level (1.0 is the normal) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public java.awt.Component comp
public CSSFormatter formatter
public java.awt.Color defaultColor
| Constructor Detail |
public XComponentWrapper(java.awt.Component aComp,
CSSFormatter aFormatter,
java.awt.Color aDefaultColor)
| Method Detail |
public 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 activepublic boolean getEnabled()
getEnabled in interface XComponent
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 setZoom(double zoom)
XComponent
setZoom 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 XComponent
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||