JavaScript is disabled on your browser.
Type Parameters:
F
- The type of the JFrame
that this builder is responsible for.
A declarative builder for
JFrame
components.
Use
show()
at the end of your declaration to display the
JFrame
window on the screen.
Method Summary
All Methods Instance Methods Concrete Methods
protected void
This builder class expects its implementations to be builder types
for anything which can be built in a nested tree-like structure.
An internal wither method which creates a new builder instance with the provided
BuilderState
stored inside it.
protected void
protected swingtree.BuilderState<F >
Returns the state of the builder, which is a container for the wrapped component
as well as it's type and current
EventProcessor
.
void
Makes the window visible in the center of the screen.
Methods inherited from class swingtree.UIForAnyWindow
onActivated , onClose , onClosed , onDeactivated , onDeiconified , onFocusGain , onFocusLoss , onIconified , onInputFocusGained , onInputFocusLost , onOpened , onPressed , onStateChanged , withOnCloseOperation , withTitle , withTitle
Methods inherited from class swingtree.UIForAnything
_addBuildersTo , _addBuilderTo , _addComponentsTo , _disposeState , _onShow , _onShow , _runInApp , _runInApp , _runInUI , _this , _with , _withOnShow , _withOnShow , add , add , add , add , apply , applyIf , applyIfPresent , component , equals , get , getComponent , getType , hashCode , peek , toString
Method Details
_newBuilderWithState
protected UIForJFrame <F > _newBuilderWithState (swingtree.BuilderState<F > newState)
An internal wither method which creates a new builder instance with the provided
BuilderState
stored inside it.
Specified by:
_newBuilderWithState
in class UIForAnything <UIForJFrame <F extends JFrame >,F extends JFrame ,Component >
Parameters:
newState
- The new state which should be stored inside the new builder instance.
Returns:
A new builder instance with the provided state stored inside it.
_addComponentTo
This builder class expects its implementations to be builder types
for anything which can be built in a nested tree-like structure.
Implementations of this abstract method ought to enable support for nested building.
Specified by:
_addComponentTo
in class UIForAnything <UIForJFrame <F extends JFrame >,F extends JFrame ,Component >
Parameters:
thisComponent
- The component which is wrapped by this builder.
addedComponent
- A component instance which ought to be added to the wrapped component type.
constraints
- The layout constraint which ought to be used to add the component to the wrapped component type.