public class AquaFx
extends java.lang.Object
AquaFX is the facade, which wraps all functionality of AquaFX in one class. Its functionality contains:
Styler
instances for skinned
ControlsEXAMPLES:
For using AquaFX to set the basic style use:
AquaFX.style();
To style the stage use:
AquaFX.styleStage(stage, StageStyle.DECORATED);
To resize a Control use:
AquaFX.resizeControl(control, ControlSizeVariant.SMALL);
To set a GrouoBox use:
AquaFX.setGroupBox(pane);
To retrieve a Styler use:
AquaFX.createButtonStyler();
Constructor and Description |
---|
AquaFx() |
public static void style()
public static void styleStage(javafx.stage.Stage stage, javafx.stage.StageStyle style)
javafx.application.Platform#isSupported(javafx.application.ConditionalFeature);
If the feature is not supported by the platform, this style downgrades to
StageStyle.DECORATEDstage
- The stage to be styled.style
- The StageStyle to be applied.public static <T extends javafx.scene.control.Control> void resizeControl(T control, ControlSizeVariant controlSizeVariant)
ControlSizeVariant
. Possible ControlSizeVariants are:
T
- Type of Controlcontrol
- The Control to be resizedcontrolSizeVariant
- The ControlSizeVariantpublic static void setGroupBox(javafx.scene.layout.Pane pane)
pane
- The Pane to be styledpublic static ButtonStyler createButtonStyler()
public static ToggleButtonStyler createToggleButtonStyler()
public static LabelStyler createLabelStyler()
public static TextFieldStyler createTextFieldStyler()
public static TextAreaStyler createTextAreaStyler()
public static PasswordFieldStyler createPasswordFieldStyler()
public static CheckBoxStyler createCheckBoxStyler()
public static RadioButtonStyler createRadioButtonStyler()
public static ChoiceBoxStyler createChoiceBoxStyler()
public static ComboBoxStyler createComboBoxStyler()
public static ColorPickerStyler createColorPickerStyler()
public static ProgressBarStyler createProgressBarStyler()
public static ProgressIndicatorStyler createProgressIndicatorStyler()
public static SliderStyler createSliderStyler()
public static ScrollBarStyler createScrollBarStyler()
public static TabPaneStyler createTabPaneStyler()
public static ToolBarStyler createToolBarStyler()
Copyright © 2013. All Rights Reserved.