|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectswingwt.awt.Component
swingwt.awt.Container
Any component that can contain other components. This class maps the Swing layouts/placements to SWT
Field Summary | |
org.eclipse.swt.widgets.Composite |
composite
The SWT peer this container represents |
protected java.util.Vector |
comps
Cache of components waiting to be laid out |
protected java.util.Vector |
containerListeners
|
protected LayoutManager |
layout
The layout manager being used to position child components |
protected boolean |
queuedValidateRequest
|
Fields inherited from interface swingwt.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
Container()
|
Method Summary | |
Component |
add(Component c)
|
Component |
add(Component c,
int index)
|
void |
add(Component c,
java.lang.Object layoutModifier)
Addition for layouts requiring object based modifiers |
void |
add(Component c,
java.lang.Object layoutModifier,
int index)
|
Component |
add(java.lang.String name,
Component c)
|
void |
addComponentToLayout(Component c)
Adds an existing component to the layout manager |
void |
addContainerListener(ContainerListener l)
|
void |
debug_showContainmentTree()
Useful for debugging purposes. |
void |
dispose()
Destroys the component and stops all listeners |
Component |
doAdd(Component c)
Actually does the hard work of adding something to a container |
void |
doLayout()
Forces laying out of this container's child components again. |
Component |
getComponent(int i)
|
int |
getComponentCount()
|
ComponentOrientation |
getComponentOrientation()
|
Component[] |
getComponents()
|
org.eclipse.swt.widgets.Composite |
getComposite()
Returns the SWT peer being used for this container |
Insets |
getInsets()
|
LayoutManager |
getLayout()
Returns the layout used by this container |
Dimension |
getMaximumSize()
Returns the maximum size of the component |
Dimension |
getMinimumSize()
Returns the minimum size of the component |
Container |
getParent()
Returns the component's parent |
Dimension |
getPreferredSize()
Returns the preferred size the component would like to be displayed at - very important for proper layout managers. |
void |
invalidate()
Forces laying out of this container's child components again. |
Dimension |
minimumSize()
|
Dimension |
preferredSize()
|
protected void |
processContainerEvent(ContainerEvent e)
|
protected void |
processEvent(AWTEvent e)
|
void |
queuedValidate()
Attempts to ensure that a request to layout a container is only done once whilst adding many components to a container. |
void |
remove(Component c)
Removes a component from the the container by destroying the peer. |
void |
remove(int index)
|
void |
removeAll()
|
void |
removeComponentFromCache(Component c)
Removes a cached component only |
void |
removeContainerListener(ContainerListener l)
|
void |
revalidate()
Forces laying out of this container's child components again. |
void |
setLayout(LayoutManager l)
I'm totally re-writing this method. |
protected void |
setLayoutImpl(LayoutManager l)
The actual code that handles assignment of the layout manager. |
void |
setSwingWTParent(Container parent)
Called when this gets added. |
void |
validate()
Forces laying out of this container's child components again. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public org.eclipse.swt.widgets.Composite composite
protected LayoutManager layout
protected java.util.Vector comps
protected java.util.Vector containerListeners
protected boolean queuedValidateRequest
Constructor Detail |
public Container()
Method Detail |
public Dimension getMinimumSize()
Component
getMinimumSize
in class Component
public Dimension minimumSize()
public Dimension preferredSize()
public Dimension getPreferredSize()
Component
getPreferredSize
in class Component
public Dimension getMaximumSize()
Component
getMaximumSize
in class Component
public void addContainerListener(ContainerListener l)
public void removeContainerListener(ContainerListener l)
public Component add(Component c)
public Component add(Component c, int index)
public Component doAdd(Component c)
protected void processEvent(AWTEvent e)
protected void processContainerEvent(ContainerEvent e)
public void addComponentToLayout(Component c)
public void invalidate()
invalidate
in class Component
public void doLayout()
public void validate()
validate
in class Component
public void revalidate()
public void queuedValidate()
public void add(Component c, java.lang.Object layoutModifier)
public void add(Component c, java.lang.Object layoutModifier, int index)
public Component add(java.lang.String name, Component c)
public void dispose()
Component
dispose
in class Component
public void remove(Component c)
public void remove(int index)
public void removeAll()
public void removeComponentFromCache(Component c)
public LayoutManager getLayout()
public void setLayout(LayoutManager l)
protected void setLayoutImpl(LayoutManager l)
public org.eclipse.swt.widgets.Composite getComposite()
public Container getParent()
Component
getParent
in class Component
public void setSwingWTParent(Container parent) throws java.lang.Exception
setSwingWTParent
in class Component
java.lang.Exception
public ComponentOrientation getComponentOrientation()
getComponentOrientation
in class Component
public Insets getInsets()
public int getComponentCount()
public Component getComponent(int i)
public Component[] getComponents()
public void debug_showContainmentTree()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |