public class XdevBorderLayout extends XdevGridLayout implements XdevComponent
XdevGridLayout
, use
addComponent(Component, Constraint)
to add components to this
layout.
Components are placed in a border region or in the center depending on the
XdevBorderLayout.Constraint
setting.
+---------------------------------------+ | North | |---------------------------------------| | | | | | | | | | West | Center | East | | | | | | | | | |---------------------------------------| | South | +---------------------------------------+If
setMode(Mode)
is set to XdevBorderLayout.Mode.WEST_EAST_FULL_HEIGHT
the
layout will look like this:
+---------------------------------------+ | | North | | | |-------------------------| | | | | | | | | | | West | Center | East | | | | | | | | | | |-------------------------| | | | South | | +---------------------------------------+
Modifier and Type | Class and Description |
---|---|
static class |
XdevBorderLayout.Constraint |
static class |
XdevBorderLayout.Mode
Mode enumeration for the border layout behavior as it's described in
XdevBorderLayout . |
XdevGridLayout.AutoFill
GridLayout.Area, GridLayout.OutOfBoundsException, GridLayout.OverlapsException
ExtendableObject.Extensions
Component.ErrorEvent, Component.Event, Component.Focusable, Component.Listener
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener
Sizeable.Unit
Layout.AlignmentHandler, Layout.MarginHandler, Layout.SpacingHandler
HasComponents.ComponentAttachDetachNotifier, HasComponents.ComponentAttachEvent, HasComponents.ComponentAttachListener, HasComponents.ComponentDetachEvent, HasComponents.ComponentDetachListener
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
Constructor and Description |
---|
XdevBorderLayout()
Creates a new empty border layout.
|
Modifier and Type | Method and Description |
---|---|
void |
addComponent(Component component,
XdevBorderLayout.Constraint constraint) |
<E> E |
addExtension(Class<? super E> type,
E extension)
Adds an extension to this component.
|
<E> E |
getExtension(Class<E> type)
Gets the registered extension for the specified type.
|
XdevBorderLayout.Mode |
getMode() |
void |
removeComponent(Component component) |
void |
setMode(XdevBorderLayout.Mode mode) |
addComponent, addComponent, addComponent, addSpacer, addSpacer, getAutoFill, hasExpandingColumn, hasExpandingRow, setAutoFill, setColumnExpandRatios, setRowExpandRatios
addComponent, addComponent, addLayoutClickListener, addListener, changeVariables, getColumnExpandRatio, getColumns, getComponent, getComponentAlignment, getComponentArea, getComponentCount, getCursorX, getCursorY, getDefaultComponentAlignment, getMargin, getRowExpandRatio, getRows, insertRow, isHideEmptyRowsAndColumns, isSpacing, iterator, newLine, paintContent, readDesign, removeAllComponents, removeComponent, removeLayoutClickListener, removeListener, removeRow, replaceComponent, setColumnExpandRatio, setColumns, setComponentAlignment, setCursorX, setCursorY, setDefaultComponentAlignment, setHideEmptyRowsAndColumns, setMargin, setMargin, setRowExpandRatio, setRows, setSpacing, space, writeDesign
addComponentAttachListener, addComponentDetachListener, addComponents, addListener, addListener, getComponentIterator, moveComponentsFrom, removeComponentAttachListener, removeComponentDetachListener, removeListener, removeListener, setHeight, setWidth
addContextClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isImmediate, isReadOnly, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeightUndefined, setIcon, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setReadOnly, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setVisible, setWidth, setWidthUndefined
addAttachListener, addDetachListener, addListener, addListener, encodeState, equals, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getRpcManager, getStateType, getUI, handleConnectorRequest, hashCode, isAttached, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
getClass, notify, notifyAll, toString, wait, wait, wait
isEnabled, isReadOnly, isVisible, setEnabled, setReadOnly, setVisible
markAsDirty
isEnabled, isImmediate
addListener, addStyleName, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
getConnectorId
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefined
addComponents, addListener, addListener, getComponentIterator, moveComponentsFrom, removeListener, removeListener
forEach, spliterator
addComponentAttachListener, addComponentDetachListener, removeComponentAttachListener, removeComponentDetachListener
public XdevBorderLayout.Mode getMode()
public void setMode(XdevBorderLayout.Mode mode)
mode
- the mode to setpublic void addComponent(Component component, XdevBorderLayout.Constraint constraint)
public void removeComponent(Component component)
removeComponent
in interface ComponentContainer
removeComponent
in class GridLayout
public <E> E addExtension(Class<? super E> type, E extension)
addExtension
in interface ExtendableObject
addExtension
in class XdevGridLayout
type
- the type to register the extension forextension
- the extensionnull
ExtendableObject.getExtension(Class)
public <E> E getExtension(Class<E> type)
getExtension
in interface ExtendableObject
getExtension
in class XdevGridLayout
type
- the type the extension was registered withnull
if none was added before for
this typeExtendableObject.addExtension(Class, Object)