Class PWFontChooser
java.lang.Object
org.eclipse.nebula.widgets.opal.preferencewindow.widgets.PWWidget
org.eclipse.nebula.widgets.opal.preferencewindow.widgets.PWChooser
org.eclipse.nebula.widgets.opal.preferencewindow.widgets.PWFontChooser
public class PWFontChooser extends PWChooser
Instances of this class are used to select a font
-
Field Summary
Fields inherited from class org.eclipse.nebula.widgets.opal.preferencewindow.widgets.PWWidget
enabler, numberOfColumns
-
Constructor Summary
Constructors Constructor Description PWFontChooser(java.lang.String label, java.lang.String propertyKey)
Constructor -
Method Summary
Modifier and Type Method Description protected java.lang.String
buildFontInformation()
void
check()
Check if the property can be binded to the widgetprotected void
setButtonAction(org.eclipse.swt.widgets.Text text, org.eclipse.swt.widgets.Button button)
Code executed when the user presses the buttonMethods inherited from class org.eclipse.nebula.widgets.opal.preferencewindow.widgets.PWChooser
build
Methods inherited from class org.eclipse.nebula.widgets.opal.preferencewindow.widgets.PWWidget
addControl, buildLabel, checkAndBuild, enableOrDisable, getAlignment, getControls, getHeight, getIndent, getLabel, getNumberOfColumns, getPropertyKey, getWidth, isGrabExcessSpace, isSingleWidget, setAlignment, setEnabler, setGrabExcessSpace, setHeight, setIndent, setWidth
-
Constructor Details
-
PWFontChooser
public PWFontChooser(java.lang.String label, java.lang.String propertyKey)Constructor- Parameters:
label
- associated labelpropertyKey
- associated key
-
-
Method Details
-
check
public void check()Description copied from class:PWWidget
Check if the property can be binded to the widget- Specified by:
check
in classPWWidget
- See Also:
PWWidget.check()
-
setButtonAction
protected void setButtonAction(org.eclipse.swt.widgets.Text text, org.eclipse.swt.widgets.Button button)Description copied from class:PWChooser
Code executed when the user presses the button- Specified by:
setButtonAction
in classPWChooser
- Parameters:
text
- text boxbutton
- associated button- See Also:
PWChooser.setButtonAction(org.eclipse.swt.widgets.Text, org.eclipse.swt.widgets.Button)
-
buildFontInformation
protected java.lang.String buildFontInformation()- Returns:
- a string that contains data about the choosen font
-