|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
T - The type of layout constraints associated with each component.
This interface and subclasses represent layout definitions, not layout implementations.
If the property of a component's constraints changes, a subclass of LayoutConstraintsPropertyChangeEvent will be fired indicating the associated component and constraints for which the value changed.public interface Layout<T extends Constraints>
Contains layout information for a layout component.
| Method Summary | |
|---|---|
void |
addComponent(Component component)
Adds a component to the layout. |
T |
createDefaultConstraints()
Creates default constraints for the layout component. |
T |
getConstraints(Component component)
Retreives layout constraints associated with a component. |
java.lang.Class<? extends T> |
getConstraintsClass()
|
LayoutComponent |
getOwner()
|
GuiseSession |
getSession()
|
void |
removeComponent(Component component)
Removes a component from the layout. |
void |
setOwner(LayoutComponent newLayoutComponent)
Sets the layout component that owns this layout This method is managed by layout components, and normally should not be called by applications. |
| Methods inherited from interface com.globalmentor.beans.PropertyBindable |
|---|
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener |
| Method Detail |
|---|
GuiseSession getSession()
LayoutComponent getOwner()
null if this layout has not been installed into a layout component.java.lang.Class<? extends T> getConstraintsClass()
void setOwner(LayoutComponent newLayoutComponent)
newLayoutComponent - The new layout component for this layout.
java.lang.NullPointerException - if the given layout component is null.
java.lang.IllegalStateException - if a different layout component is provided and this layout already has a layout component.
java.lang.IllegalArgumentException - if a different layout component is provided and the given layout component does not already recognize this layout as its layout.void addComponent(Component component)
component - The component to add to the layout.
java.lang.IllegalStateException - if this layout has not yet been installed into a layout component.void removeComponent(Component component)
component - The component to remove from the layout.T getConstraints(Component component)
component - The component for which layout metadata is being requested.
java.lang.IllegalStateException - if this layout has not yet been installed into a layout component.
java.lang.IllegalStateException - if no constraints are associated with the given component and this layout does not support default constraints.getConstraintsClass(),
Component.getConstraints(),
Component.setConstraints(Constraints)T createDefaultConstraints()
java.lang.IllegalStateException - if this layout does not support default constraints.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||