|
com.im.ijc.widgets/1 5.9.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.im.ijc.widgets.abstractwidget.CommonWidgetSettings
public class CommonWidgetSettings
Represents settings with properties that are common to all IJC widgets. Currently those are:
| Field Summary | |
|---|---|
static String |
PROP_BORDER
Property code name for the widget border. |
static String |
PROP_TOOLTIP
Property code name for the widget tooltip. |
| Constructor Summary | |
|---|---|
CommonWidgetSettings()
|
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
|
protected void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
|
WidgetBorder |
getBorder()
Get the widget border. |
WidgetToolTip |
getToolTip()
Get the widget tooltip. |
DFField |
getToolTipField()
Utility method returning getToolTip().getField() iff the tooltip is not null; return null
otherwise. |
boolean |
isInternalBorderSpacingOn()
Whether there should be spacing between inner Swing component pertaining to (or wrapped by) IJC widget and its titled border. |
void |
removePropertyChangeListener(PropertyChangeListener l)
|
void |
setBorder(Font font)
|
void |
setBorder(String title)
|
void |
setBorder(WidgetBorder border)
Set the widget's border. |
void |
setBorderType(WidgetBorder.BorderType type)
|
void |
setInternalBorderSpacingOn(boolean internalBorderSpacingOn)
Set whether there should be spacing between inner Swing component pertaining to (or wrapped by) IJC widget and its titled border. |
void |
setToolTip(WidgetToolTip toolTip)
Set the widget's tooltip. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROP_BORDER
public static final String PROP_TOOLTIP
| Constructor Detail |
|---|
public CommonWidgetSettings()
| Method Detail |
|---|
public void setBorder(WidgetBorder border)
border - the new Titlepublic void setBorder(String title)
public void setBorder(Font font)
public void setBorderType(WidgetBorder.BorderType type)
public WidgetBorder getBorder()
public void setToolTip(WidgetToolTip toolTip)
WidgetToolTip for more.
toolTip - the new tooltippublic DFField getToolTipField()
getToolTip().getField() iff the tooltip is not null; return null
otherwise.
public WidgetToolTip getToolTip()
nullpublic void setInternalBorderSpacingOn(boolean internalBorderSpacingOn)
Widget is supposed to keep its original space thus providing more space for the inner component (like textfield).
internalBorderSpacingOn - should be there spacing between Swing widget and the border?public boolean isInternalBorderSpacingOn()
setInternalBorderSpacingOn(boolean)
protected final void firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
public final void addPropertyChangeListener(PropertyChangeListener l)
public final void removePropertyChangeListener(PropertyChangeListener l)
|
com.im.ijc.widgets/1 5.9.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||