|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jguiraffe.gui.platform.swing.builder.components.SwingComponentHandler
net.sf.jguiraffe.gui.platform.swing.builder.components.SwingStaticTextComponentHandler
class SwingStaticTextComponentHandler
A concrete ComponentHandler implementation for dealing with
static text elements. This implementation will maintain a label component
whose properties can be queried or altered using
objects.
StaticTextData
| Constructor Summary | |
|---|---|
SwingStaticTextComponentHandler(javax.swing.JLabel label)
Creates a new instance of SwingStaticTextComponentHandler
that wraps the passed in label component. |
|
| Method Summary | |
|---|---|
TextIconAlignment |
getAlignment()
Returns the alignment of the managed label. |
java.lang.Object |
getData()
Returns a data object for this component. |
java.lang.Object |
getIcon()
Returns the label's icon. |
javax.swing.JLabel |
getLabel()
Returns the internally wrapped label component. |
java.lang.String |
getText()
Returns the text of the managed label. |
java.lang.Class |
getType()
Returns the data type of this component handler. |
void |
setAlignment(TextIconAlignment alignment)
Sets the alignment of the managed label. |
void |
setData(java.lang.Object data)
Sets data for this component. |
void |
setIcon(java.lang.Object icon)
Sets the icon of the managed label. |
void |
setText(java.lang.String s)
Sets the text of the managed label. |
| Methods inherited from class net.sf.jguiraffe.gui.platform.swing.builder.components.SwingComponentHandler |
|---|
addActionListener, addChangeListener, addFocusListener, fireChangeEvent, getComponent, getJComponent, getOuterComponent, isEnabled, registerChangeListener, removeActionListener, removeChangeListener, removeFocusListener, setEnabled, unregisterChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.jguiraffe.gui.forms.ComponentHandler |
|---|
getComponent, getOuterComponent, isEnabled, setEnabled |
| Constructor Detail |
|---|
public SwingStaticTextComponentHandler(javax.swing.JLabel label)
SwingStaticTextComponentHandler
that wraps the passed in label component.
label - the component to be managed by this handler| Method Detail |
|---|
public javax.swing.JLabel getLabel()
public java.lang.Object getData()
StaticTextData object in this case.
getData in interface ComponentHandlerpublic java.lang.Class getType()
getType in interface ComponentHandlerpublic void setData(java.lang.Object data)
setData in interface ComponentHandlerdata - the data objectpublic TextIconAlignment getAlignment()
getAlignment in interface StaticTextDatapublic java.lang.Object getIcon()
getIcon in interface StaticTextDatapublic java.lang.String getText()
getText in interface StaticTextDatapublic void setAlignment(TextIconAlignment alignment)
setAlignment in interface StaticTextDataalignment - the new alignmentpublic void setIcon(java.lang.Object icon)
Icon interface of Swing.
setIcon in interface StaticTextDataicon - the new iconpublic void setText(java.lang.String s)
setText in interface StaticTextDatas - the new text
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||