public class DesktopScrollBoxLayout extends DesktopAbstractComponent<javax.swing.JScrollPane> implements ScrollBoxLayout, AutoExpanding, DesktopContainer
ScrollBoxLayout.Orientation, ScrollBoxLayout.ScrollBarPolicy
Component.ActionOwner, Component.ActionsHolder, Component.Alignment, Component.BelongToFrame, Component.Buffered, Component.ChildEditableController, Component.Collapsable, Component.Container, Component.Disposable, Component.Editable, Component.EditableChangeEvent, Component.EditableChangeListener, Component.EditableChangeNotifier, Component.ExpandedStateChangeEvent, Component.ExpandedStateChangeListener, Component.Focusable, Component.HasBorder, Component.HasButtonsPanel, Component.HasCaption, Component.HasFormatter, Component.HasIcon, Component.HasInputPrompt, Component.HasNamedComponents, Component.HasPresentations, Component.HasRowsCount, Component.HasSettings, Component.HasValue, Component.HasXmlDescriptor, Component.LayoutClickEvent, Component.LayoutClickListener, Component.LayoutClickNotifier, Component.Margin, Component.MouseEventDetails, Component.OrderedContainer, Component.OuterMargin, Component.SecuredActionsHolder, Component.ShortcutAction, Component.ShortcutNotifier, Component.ShortcutTriggeredEvent, Component.Spacing, Component.UiPermissionAware, Component.Validatable, Component.ValueChangeEvent, Component.ValueChangeListener, Component.Wrapper
SWING_PROPERTY_CLASS, SWING_PROPERTY_ID
NAME
AUTO_SIZE, AUTO_SIZE_PX, UNITS_PERCENTAGE, UNITS_PIXELS
Constructor and Description |
---|
DesktopScrollBoxLayout() |
Modifier and Type | Method and Description |
---|---|
void |
add(Component component) |
void |
add(Component component,
int index) |
void |
addShortcutAction(Component.ShortcutAction action) |
boolean |
expandsHeight() |
boolean |
expandsWidth() |
java.lang.String |
getCaption() |
Component |
getComponent(int index)
Returns the component at the given position.
|
Component |
getComponent(java.lang.String id)
Get component belonging to the whole components tree below this container.
|
java.util.Collection<Component> |
getComponents()
Get all components belonging to the whole components tree below this container
|
java.lang.String |
getDescription() |
MarginInfo |
getMargin() |
ScrollBoxLayout.Orientation |
getOrientation() |
Component |
getOwnComponent(java.lang.String id)
Get component directly owned by this container.
|
java.util.Collection<Component> |
getOwnComponents()
Get all components directly owned by this container
|
ScrollBoxLayout.ScrollBarPolicy |
getScrollBarPolicy() |
boolean |
getSpacing() |
int |
indexOf(Component child) |
void |
remove(Component component) |
void |
removeAll() |
void |
removeShortcutAction(Component.ShortcutAction action) |
void |
setCaption(java.lang.String caption) |
void |
setDescription(java.lang.String description) |
void |
setFrame(Frame frame) |
void |
setMargin(MarginInfo marginInfo) |
void |
setOrientation(ScrollBoxLayout.Orientation orientation) |
void |
setScrollBarPolicy(ScrollBoxLayout.ScrollBarPolicy scrollBarPolicy) |
void |
setSpacing(boolean enabled) |
void |
updateComponent(Component child) |
void |
updateEnabled() |
addStyleName, assignAutoDebugId, getAlignment, getComponent, getComposition, getDebugId, getFrame, getHeight, getHeightUnits, getIcon, getId, getParent, getStyleName, getTabIndex, getWidth, getWidthUnits, getXmlDescriptor, isComponentVisible, isEnabled, isEnabledItself, isParentEnabled, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setContainer, setDebugId, setEnabled, setExpanded, setHeight, setIcon, setId, setParent, setParentEnabled, setResponsive, setStyleName, setTabIndex, setVisible, setWidth, setXmlDescriptor, unwrap, unwrapComposition
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponentNN
getComponentNN
addStyleName, getAlignment, getDebugId, getHeight, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthUnits, isEnabled, isEnabledItself, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setDebugId, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition
getFrame
setMargin, setMargin
getIcon, setIcon
public void add(Component component)
add
in interface Component.Container
public void add(Component component, int index)
add
in interface Component.OrderedContainer
public int indexOf(Component child)
indexOf
in interface Component.OrderedContainer
@Nullable public Component getComponent(int index)
Component.OrderedContainer
getComponent
in interface Component.OrderedContainer
index
- component indexpublic void remove(Component component)
remove
in interface Component.Container
public void removeAll()
removeAll
in interface Component.Container
public void setFrame(Frame frame)
setFrame
in interface Component.BelongToFrame
setFrame
in class DesktopAbstractComponent<javax.swing.JScrollPane>
public Component getOwnComponent(java.lang.String id)
Component.Container
getOwnComponent
in interface Component.Container
@Nullable public Component getComponent(java.lang.String id)
Component.Container
getComponent
in interface Component.Container
public java.util.Collection<Component> getOwnComponents()
Component.Container
getOwnComponents
in interface Component.Container
public java.util.Collection<Component> getComponents()
Component.Container
getComponents
in interface Component.Container
public boolean expandsWidth()
expandsWidth
in interface AutoExpanding
public boolean expandsHeight()
expandsHeight
in interface AutoExpanding
public ScrollBoxLayout.Orientation getOrientation()
getOrientation
in interface ScrollBoxLayout
public void setOrientation(ScrollBoxLayout.Orientation orientation)
setOrientation
in interface ScrollBoxLayout
public ScrollBoxLayout.ScrollBarPolicy getScrollBarPolicy()
getScrollBarPolicy
in interface ScrollBoxLayout
public void setScrollBarPolicy(ScrollBoxLayout.ScrollBarPolicy scrollBarPolicy)
setScrollBarPolicy
in interface ScrollBoxLayout
public void setMargin(MarginInfo marginInfo)
setMargin
in interface Component.Margin
public MarginInfo getMargin()
getMargin
in interface Component.Margin
public void setSpacing(boolean enabled)
setSpacing
in interface Component.Spacing
public boolean getSpacing()
getSpacing
in interface Component.Spacing
public void updateComponent(Component child)
updateComponent
in interface DesktopContainer
public void updateEnabled()
public java.lang.String getCaption()
getCaption
in interface Component.HasCaption
getCaption
in class DesktopAbstractComponent<javax.swing.JScrollPane>
public void setCaption(java.lang.String caption)
setCaption
in interface Component.HasCaption
setCaption
in class DesktopAbstractComponent<javax.swing.JScrollPane>
public java.lang.String getDescription()
getDescription
in interface Component.HasCaption
public void setDescription(java.lang.String description)
setDescription
in interface Component.HasCaption
public void addShortcutAction(Component.ShortcutAction action)
addShortcutAction
in interface Component.ShortcutNotifier
public void removeShortcutAction(Component.ShortcutAction action)
removeShortcutAction
in interface Component.ShortcutNotifier