|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.lwuit.layouts.Layout
public abstract class Layout
Abstract class that can be used to arrange components in a container using a predefined algorithm. This class may be implemented externally and is similar in spirit to the AWT/Swing layout managers.
Constructor Summary | |
---|---|
Layout()
|
Method Summary | |
---|---|
void |
addLayoutComponent(java.lang.Object value,
Component comp,
Container c)
Some layouts can optionally track the addition of elements with meta-data that allows the user to "hint" on object positioning. |
boolean |
equals(java.lang.Object o)
|
java.lang.Object |
getComponentConstraint(Component comp)
Returns the optional component constraint |
abstract Dimension |
getPreferredSize(Container parent)
Returns the container preferred size |
int |
hashCode()
|
boolean |
isOverlapSupported()
This method returns true if the Layout allows Components to Overlap. |
abstract void |
layoutContainer(Container parent)
Layout the given parent container children |
void |
removeLayoutComponent(Component comp)
Removes the component from the layout this operation is only useful if the layout maintains references to components within it |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Layout()
Method Detail |
---|
public abstract void layoutContainer(Container parent)
parent
- the given parent containerpublic abstract Dimension getPreferredSize(Container parent)
parent
- the parent container
public void addLayoutComponent(java.lang.Object value, Component comp, Container c)
value
- optional meta data information, like alignment orientationcomp
- the added component to the layoutc
- the parent containerpublic void removeLayoutComponent(Component comp)
comp
- the removed component from layoutpublic java.lang.Object getComponentConstraint(Component comp)
comp
- the component whose constraint should be returned
public boolean isOverlapSupported()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |