|
|||||||||||
| 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.SwingLabelCompound
A caption object
| Field Summary | |
protected int |
axis
the axis depends on the caption side CSS attribute |
protected SwingCaption |
caption
the caption component |
protected java.lang.String |
captionSide
the caption-side string |
protected XComponent |
component
the component itself |
protected java.awt.Container |
container
the top-level container, containing the caption and the content component |
protected double |
currentZoom
|
protected boolean |
layoutDone
|
static int |
X_AXIS
Specifies that components should be laid out left to right. |
static int |
Y_AXIS
Specifies that components should be laid out top to bottom. |
| Constructor Summary | |
SwingLabelCompound(XComponent comp,
XCaption capt,
java.lang.String captSide)
|
|
| Method Summary | |
void |
add(XComponent c)
|
protected java.lang.String |
calculateAxis(java.lang.String cs)
|
protected void |
createContainer()
creates the main container |
java.awt.Component |
getComponent()
Return the visual component for this extension element |
java.awt.Dimension |
getSize()
Returns the size of this compound |
void |
init()
|
protected void |
layoutComponent()
layouts the component using the caption, content and the main container parts of the control |
void |
remove(XComponent c)
|
void |
removeAll()
Remove all components from conatiner. |
void |
setVisible(boolean v)
Set this drawing area visible. |
void |
setZoom(double zoom)
Set's this components zoom (1.0 is the default). |
void |
textValueChanged(java.awt.event.TextEvent e)
Invoked when the value of the text has changed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected SwingCaption caption
protected XComponent component
protected java.lang.String captionSide
protected java.awt.Container container
protected int axis
protected boolean layoutDone
protected double currentZoom
public static final int X_AXIS
public static final int Y_AXIS
| Constructor Detail |
public SwingLabelCompound(XComponent comp,
XCaption capt,
java.lang.String captSide)
| Method Detail |
public void init()
protected void createContainer()
protected void layoutComponent()
protected java.lang.String calculateAxis(java.lang.String cs)
public void setZoom(double zoom)
setZoom in interface XCompoundpublic java.awt.Component getComponent()
XCompound
getComponent in interface XCompoundpublic java.awt.Dimension getSize()
XCompound
getSize in interface XCompoundpublic void setVisible(boolean v)
setVisible in interface XCompoundv - true=visible, false=invisiblepublic void add(XComponent c)
add in interface XCompoundc - The component to be addedpublic void remove(XComponent c)
remove in interface XCompoundc - Remove component cpublic void removeAll()
removeAll in interface XCompoundpublic void textValueChanged(java.awt.event.TextEvent e)
textValueChanged in interface java.awt.event.TextListener
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||