|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.kleopatra.view.presentation.DefaultPresentationManager.DefaultComponentCustomizer
de.kleopatra.view.presentation.DefaultPresentationManager.LabelCustomizer
Customizer for JLabel.
customize toolTip, text, icon, mnemonic from presentation attributes. supports enhanced labelFor (listens to enable/disable of target).
Prepared to append colon if useLabelEnding(..) returns true. The feature is disabled by default (because it requires some additional mechanism to decide when not to append - see examples for one possibility to do it).
Constructor Summary | |
DefaultPresentationManager.LabelCustomizer()
|
Method Summary | |
void |
customize(java.awt.Component comp,
PresentationDescription desc,
java.lang.Class clazz)
|
void |
customizeLabel(javax.swing.JLabel label,
PresentationDescription desc,
java.lang.Class clazz)
|
protected java.lang.String |
getLabelEnding()
|
void |
setLabelFor(java.awt.Component label,
java.awt.Component target)
set target as labelFor of JLabel and installs listener to enable/disable label in synch with target. |
protected void |
setLabelText(javax.swing.JLabel label,
java.lang.String text)
set label text, appending colon if appropriate. |
protected boolean |
useLabelEnding(javax.swing.JLabel label,
java.lang.String text)
Decision about appending colon, based on label and text. |
protected boolean |
useLabelEnding(java.lang.String text)
Decision about appending colon, based on text. |
Methods inherited from class de.kleopatra.view.presentation.DefaultPresentationManager.DefaultComponentCustomizer |
createDescription, createPresentationDescription, customize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultPresentationManager.LabelCustomizer()
Method Detail |
public void customize(java.awt.Component comp, PresentationDescription desc, java.lang.Class clazz)
customize
in interface ComponentCustomizer
customize
in class DefaultPresentationManager.DefaultComponentCustomizer
public void customizeLabel(javax.swing.JLabel label, PresentationDescription desc, java.lang.Class clazz)
protected void setLabelText(javax.swing.JLabel label, java.lang.String text)
label
- text
- protected boolean useLabelEnding(javax.swing.JLabel label, java.lang.String text)
label
- text
-
protected boolean useLabelEnding(java.lang.String text)
text
-
protected java.lang.String getLabelEnding()
public void setLabelFor(java.awt.Component label, java.awt.Component target)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |