Package swingtree
Class UIForScrollPanels<P extends JScrollPanels>
java.lang.Object
- Type Parameters:
P
- The type of the component which this builder node wraps.
public class UIForScrollPanels<P extends JScrollPanels>
extends UIForAnyScrollPane<UIForScrollPanels<P>,P>
A builder node for
JScrollPanels
, a custom SwingTree component,
which is similar to a JList
but with the ability to interact with
the individual components in the list.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
UIForScrollPanels
(swingtree.BuilderState<P> state) Extensions of theUIForAnySwing
always wrap a single component for which they are responsible. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
_addComponentTo
(P thisComponent, JComponent addedComponent, @Nullable AddConstraint constraints) This builder class expects its implementations to be builder types for anything which can be built in a nested tree-like structure.protected <M> void
_addViewableProps
(sprouts.Val<sprouts.Tuple<M>> models, @Nullable AddConstraint attr, swingtree.ModelToViewConverter<M> viewSupplier, P thisComponent) protected <M> void
_addViewableProps
(sprouts.Vals<M> models, @Nullable AddConstraint attr, swingtree.ModelToViewConverter<M> viewSupplier, P thisComponent) protected UIForScrollPanels
<P> _newBuilderWithState
(swingtree.BuilderState<P> newState) An internal wither method which creates a new builder instance with the providedBuilderState
stored inside it.protected swingtree.BuilderState
<P> _state()
Returns the state of the builder, which is a container for the wrapped component as well as it's type and currentEventProcessor
.Methods inherited from class swingtree.UIForAnyScrollPane
withBlockScrollIncrement, withHorizontalBlockScrollIncrement, withHorizontalScrollBarPolicy, withHorizontalScrollBarPolicy, withHorizontalScrollIncrement, withScrollBarPolicy, withScrollIncrement, withVerticalBlockScrollIncrement, withVerticalScrollBarPolicy, withVerticalScrollBarPolicy, withVerticalScrollIncrement
Methods inherited from class swingtree.UIForAnySwing
_isUndefinedColor, _isUndefinedFont, _setBackground, _setEnabled, _setMinHeight, _setMinWidth, _setPrefWidth, add, add, add, add, add, add, add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAll, doUpdates, group, group, id, id, isEnabledIf, isEnabledIf, isEnabledIf, isEnabledIfNot, isEnabledIfNot, isEnabledIfNot, isFocusableIf, isFocusableIf, isFocusableIf, isFocusableIfNot, isFocusableIfNot, isFocusableIfNot, isValidIf, isVisibleIf, isVisibleIf, isVisibleIf, isVisibleIfNot, isVisibleIfNot, isVisibleIfNot, makeFocused, makeNonOpaque, makeOpaque, on, on, onCharTyped, onFocusGain, onFocusLoss, onHidden, onKeyPress, onKeyRelease, onKeyTyped, onMouseClick, onMouseDrag, onMouseEnter, onMouseEnter, onMouseEnterGreedy, onMouseExit, onMouseExit, onMouseExitGreedy, onMouseMove, onMousePress, onMouseRelease, onMouseWheelDown, onMouseWheelMove, onMouseWheelUp, onMoved, onPressed, onRelease, onResize, onShown, onTyped, onTyped, onView, withBackground, withBackground, withBackgroundColor, withBackgroundIf, withBackgroundIf, withBackgroundIf, withBackgroundIf, withBorder, withBorder, withBorderTitled, withBorderTitled, withBoxLayout, withCompoundBorder, withCompoundBorderTitled, withCursor, withCursor, withCursorIf, withCursorIf, withDragAway, withDropSite, withEmptyBorder, withEmptyBorder, withEmptyBorder, withEmptyBorder, withEmptyBorderTitled, withEmptyBorderTitled, withEmptyBorderTitled, withEmptyBorderTitled, withEmptyBorderTitled, withEmptyBorderTitled, withEmptyBorderTitled, withEmptyBorderTitled, withFlowLayout, withFlowLayout, withFlowLayout, withForeground, withForeground, withForegroundColor, withForegroundIf, withForegroundIf, withForegroundIf, withForegroundIf, withGridBagLayout, withGridLayout, withGridLayout, withGridLayout, withHeight, withHeight, withHeightExactly, withHeightExactly, withLayout, withLayout, withLayout, withLayout, withLayout, withLayout, withLayout, withLayout, withLayout, withLayout, withLayout, withLayout, withLineBorder, withLineBorder, withLineBorder, withLineBorderTitled, withLineBorderTitled, withLineBorderTitled, withLineBorderTitled, withMatteBorder, withMatteBorder, withMatteBorder, withMatteBorderTitled, withMatteBorderTitled, withMatteBorderTitled, withMaxHeight, withMaxHeight, withMaxSize, withMaxSize, withMaxSize, withMaxSize, withMaxSize, withMaxWidth, withMaxWidth, withMinHeight, withMinHeight, withMinSize, withMinSize, withMinSize, withMinSize, withMinSize, withMinWidth, withMinWidth, withPrefHeight, withPrefHeight, withPrefSize, withPrefSize, withPrefSize, withPrefSize, withPrefSize, withPrefWidth, withPrefWidth, withProperty, withRepaintOn, withRepaintOn, withRepaintOn, withRepaintOn, withRepaintOn, withRepaintOn, withRoundedLineBorder, withRoundedLineBorder, withRoundedLineBorder, withRoundedLineBorder, withRoundedLineBorderTitled, withRoundedLineBorderTitled, withRoundedLineBorderTitled, withRoundedLineBorderTitled, withRoundedLineBorderTitled, withRoundedLineBorderTitled, withRoundedLineBorderTitled, withSize, withSize, withSize, withSize, withSizeExactly, withSizeExactly, withSizeExactly, withSizeExactly, withStyle, withTooltip, withTooltip, withTransitionalStyle, withTransitoryStyle, withWidth, withWidth, withWidthExactly, withWidthExactly
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
-
Constructor Details
-
UIForScrollPanels
Extensions of theUIForAnySwing
always wrap a single component for which they are responsible.- Parameters:
state
- TheBuilderState
modelling how the underlying component is build.
-
-
Method Details
-
_state
Description copied from class:UIForAnything
Returns the state of the builder, which is a container for the wrapped component as well as it's type and currentEventProcessor
.- Specified by:
_state
in classUIForAnything<UIForScrollPanels<P extends JScrollPanels>,
P extends JScrollPanels, JComponent> - Returns:
- The state of the builder.
-
_newBuilderWithState
Description copied from class:UIForAnything
An internal wither method which creates a new builder instance with the providedBuilderState
stored inside it.- Specified by:
_newBuilderWithState
in classUIForAnything<UIForScrollPanels<P extends JScrollPanels>,
P extends JScrollPanels, JComponent> - 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
protected void _addComponentTo(P thisComponent, JComponent addedComponent, @Nullable AddConstraint constraints) Description copied from class:UIForAnything
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.- Overrides:
_addComponentTo
in classUIForAnyScrollPane<UIForScrollPanels<P extends JScrollPanels>,
P extends JScrollPanels> - 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.
-
_addViewableProps
protected <M> void _addViewableProps(sprouts.Vals<M> models, @Nullable AddConstraint attr, swingtree.ModelToViewConverter<M> viewSupplier, P thisComponent) - Overrides:
_addViewableProps
in classUIForAnySwing<UIForScrollPanels<P extends JScrollPanels>,
P extends JScrollPanels>
-
_addViewableProps
protected <M> void _addViewableProps(sprouts.Val<sprouts.Tuple<M>> models, @Nullable AddConstraint attr, swingtree.ModelToViewConverter<M> viewSupplier, P thisComponent) - Overrides:
_addViewableProps
in classUIForAnySwing<UIForScrollPanels<P extends JScrollPanels>,
P extends JScrollPanels>
-