public class DesktopGridLayout extends DesktopAbstractComponent<javax.swing.JPanel> implements GridLayout, DesktopContainer
GridLayout.Area
Component.ActionOwner, Component.ActionsHolder, Component.Alignment, Component.BelongToFrame, Component.Buffered, Component.ChildEditableController, Component.Collapsable, Component.Container, Component.ContextHelpIconClickEvent, Component.Disposable, Component.Editable, Component.EditableChangeEvent, Component.EditableChangeListener, Component.EditableChangeNotifier, Component.ExpandedStateChangeEvent, Component.ExpandedStateChangeListener, Component.Focusable, Component.HasBorder, Component.HasButtonsPanel, Component.HasCaption, Component.HasContextHelp, Component.HasFormatter, Component.HasIcon, Component.HasInputPrompt, Component.HasNamedComponents, Component.HasOptionsStyleProvider, Component.HasPresentations, Component.HasRowsCount, Component.HasSettings, Component.HasValue, Component.HasXmlDescriptor, Component.LayoutClickEvent, Component.LayoutClickListener, Component.LayoutClickNotifier, Component.Margin, Component.MouseEventDetails, Component.OptionsStyleProvider, Component.OrderedContainer, Component.OuterMargin, Component.SecuredActionsHolder, Component.ShortcutAction, Component.ShortcutNotifier, Component.ShortcutTriggeredEvent, Component.Spacing, Component.UiPermissionAware, Component.Validatable, Component.ValueChangeEvent, Component.ValueChangeListener, Component.Wrapper
DesktopComponent.HasContextHelpClickHandler
SWING_PROPERTY_CLASS, SWING_PROPERTY_ID
NAME
AUTO_SIZE, AUTO_SIZE_PX, UNITS_PERCENTAGE, UNITS_PIXELS
Constructor and Description |
---|
DesktopGridLayout() |
Modifier and Type | Method and Description |
---|---|
void |
add(Component component) |
void |
add(Component component,
int col,
int row) |
void |
add(Component component,
int col,
int row,
int col2,
int row2) |
void |
addLayoutClickListener(Component.LayoutClickListener listener) |
void |
addShortcutAction(Component.ShortcutAction action) |
float |
getColumnExpandRatio(int col) |
int |
getColumns() |
Component |
getComponent(int columnIndex,
int rowIndex)
Gets the Component at given row and column.
|
Component |
getComponent(java.lang.String id)
Get component belonging to the whole components tree below this container.
|
GridLayout.Area |
getComponentArea(Component component)
Returns information about the area where given component is laid in the
GridLayout.
|
java.util.Collection<Component> |
getComponents()
Get all components belonging to the whole components tree below this container
|
java.lang.String |
getDescription() |
MarginInfo |
getMargin() |
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
|
float |
getRowExpandRatio(int row) |
int |
getRows() |
boolean |
getSpacing() |
void |
remove(Component component) |
void |
removeAll() |
void |
removeLayoutClickListener(Component.LayoutClickListener listener) |
void |
removeShortcutAction(Component.ShortcutAction action) |
void |
setColumnExpandRatio(int col,
float ratio) |
void |
setColumns(int columns) |
void |
setDescription(java.lang.String description) |
void |
setFrame(Frame frame) |
void |
setMargin(MarginInfo marginInfo) |
void |
setRowExpandRatio(int row,
float ratio) |
void |
setRows(int rows) |
void |
setSpacing(boolean enabled) |
void |
updateComponent(Component child) |
void |
updateEnabled() |
addStyleName, assignAutoDebugId, getAlignment, getCaption, getComponent, getComposition, getDebugId, getFrame, getHeight, getHeightUnits, getIcon, getId, getParent, getStyleName, getTabIndex, getWidth, getWidthUnits, getXmlDescriptor, isComponentVisible, isEnabled, isEnabledItself, isParentEnabled, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setCaption, setContainer, setDebugId, setEnabled, setExpanded, setHeight, setIcon, setIconFromSet, setId, setParent, setParentEnabled, setResponsive, setStyleName, setTabIndex, setVisible, setWidth, setXmlDescriptor, unwrap, unwrapComposition
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponentNN
setMargin, setMargin
getFrame
getIcon, setIcon, setIconFromSet
getCaption, setCaption
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
public float getColumnExpandRatio(int col)
getColumnExpandRatio
in interface GridLayout
public void setColumnExpandRatio(int col, float ratio)
setColumnExpandRatio
in interface GridLayout
public float getRowExpandRatio(int row)
getRowExpandRatio
in interface GridLayout
public void setRowExpandRatio(int row, float ratio)
setRowExpandRatio
in interface GridLayout
public void add(Component component, int col, int row)
add
in interface GridLayout
public void add(Component component, int col, int row, int col2, int row2)
add
in interface GridLayout
public void setFrame(Frame frame)
setFrame
in interface Component.BelongToFrame
setFrame
in class DesktopAbstractComponent<javax.swing.JPanel>
public int getRows()
getRows
in interface GridLayout
public void setRows(int rows)
setRows
in interface GridLayout
public int getColumns()
getColumns
in interface GridLayout
public void setColumns(int columns)
setColumns
in interface GridLayout
@Nullable public Component getComponent(int columnIndex, int rowIndex)
GridLayout
getComponent
in interface GridLayout
columnIndex
- the column index, starting from 0 for the leftmost column.rowIndex
- the row index, starting from 0 for the topmost row.@Nullable public GridLayout.Area getComponentArea(Component component)
GridLayout
getComponentArea
in interface GridLayout
component
- the component whose area information is requested.public void add(Component component)
add
in interface Component.Container
public void remove(Component component)
remove
in interface Component.Container
public void removeAll()
removeAll
in interface Component.Container
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 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 getDescription()
getDescription
in interface Component.HasCaption
public void setDescription(java.lang.String description)
setDescription
in interface Component.HasCaption
public void addLayoutClickListener(Component.LayoutClickListener listener)
addLayoutClickListener
in interface Component.LayoutClickNotifier
public void removeLayoutClickListener(Component.LayoutClickListener listener)
removeLayoutClickListener
in interface Component.LayoutClickNotifier
public void addShortcutAction(Component.ShortcutAction action)
addShortcutAction
in interface Component.ShortcutNotifier
public void removeShortcutAction(Component.ShortcutAction action)
removeShortcutAction
in interface Component.ShortcutNotifier