Class FontInput
java.lang.Object
de.willuhn.jameica.gui.input.AbstractInput
de.willuhn.jameica.gui.input.ButtonInput
de.willuhn.jameica.gui.input.FontInput
-
Field Summary
Fields inherited from class ButtonInput
buttonEnabled, clientControl, clientControlEnabled, valueFields inherited from interface Input
DATAKEY_TOOLTIP -
Constructor Summary
ConstructorsConstructorDescriptionFontInput(org.eclipse.swt.graphics.Font font) Erzeugt ein neues FontInput mit der angegebenen Schriftart. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.swt.widgets.ControlgetClientControl(org.eclipse.swt.widgets.Composite parent) Liefert das einzubettende Eingabefeld.getValue()Liefert die aktuell ausgewaehlte Schriftart.voidErwartet ein Object vom TypFont.Methods inherited from class ButtonInput
addButtonListener, disable, disableButton, disableClientControl, enable, enableButton, enableClientControl, focus, getControl, isEnabled, setButtonImage, setButtonText, setEnabled, updateMethods inherited from class AbstractInput
addListener, addListener, getData, getName, getParent, getStyleBits, hasChanged, isMandatory, paint, paint, setComment, setData, setInvalidChars, setMandatory, setName, setValidChars
-
Constructor Details
-
FontInput
public FontInput(org.eclipse.swt.graphics.Font font) Erzeugt ein neues FontInput mit der angegebenen Schriftart.- Parameters:
font- initial anzuzeigende Schriftart.
-
-
Method Details
-
getClientControl
public org.eclipse.swt.widgets.Control getClientControl(org.eclipse.swt.widgets.Composite parent) Description copied from class:ButtonInputLiefert das einzubettende Eingabefeld.- Specified by:
getClientControlin classButtonInput- Parameters:
parent- Composite, in dem sich das ClientControl malen soll.- Returns:
- das fertig gemalte Control.
-
getValue
Liefert die aktuell ausgewaehlte Schriftart. Rueckgabewert vom TypFont.- Returns:
- Wert des Feldes.
-
setValue
Erwartet ein Object vom TypFont.- Parameters:
value- der neu anzuzeigende Wert.
-