thinwire.ui.layout
Class AbstractLayout
java.lang.Object
thinwire.ui.layout.AbstractLayout
- All Implemented Interfaces:
- Layout
- Direct Known Subclasses:
- SplitLayout, TableLayout
public abstract class AbstractLayout
- extends java.lang.Object
- implements Layout
Constructor Summary |
protected |
AbstractLayout(java.lang.String... autoLayoutProps)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
container
protected Container<Component> container
autoLayoutProps
protected java.lang.String[] autoLayoutProps
autoLayout
protected boolean autoLayout
limitLayout
protected boolean limitLayout
margin
protected int margin
spacing
protected int spacing
AbstractLayout
protected AbstractLayout(java.lang.String... autoLayoutProps)
addComponent
protected void addComponent(Component comp)
removeComponent
protected void removeComponent(Component comp)
limitChanged
protected void limitChanged(Component comp,
java.lang.Object oldLimit)
getFormalLimit
protected java.lang.Object getFormalLimit(Component comp)
setContainer
public void setContainer(Container<Component> container)
- Specified by:
setContainer
in interface Layout
getContainer
public Container<Component> getContainer()
- Specified by:
getContainer
in interface Layout
isAutoApply
public boolean isAutoApply()
- Specified by:
isAutoApply
in interface Layout
setAutoApply
public void setAutoApply(boolean autoLayout)
- Specified by:
setAutoApply
in interface Layout
getMargin
public int getMargin()
- Specified by:
getMargin
in interface Layout
setMargin
public void setMargin(int margin)
- Specified by:
setMargin
in interface Layout
getSpacing
public int getSpacing()
- Specified by:
getSpacing
in interface Layout
setSpacing
public void setSpacing(int spacing)
- Specified by:
setSpacing
in interface Layout
update
protected void update()
apply
public void apply()
- Specified by:
apply
in interface Layout