| java.lang.Object org.wings.SComponent org.wings.SContainer
All known Subclasses: org.wings.SDesktopPane, org.wings.SRootContainer, org.wingx.XDivision, org.wings.SSplitPane, org.wings.SForm, org.wings.SMenuBar, org.wings.SScrollPane, org.wings.SAnchor, org.wingx.XCalendar, org.wings.STabbedPane, org.wingx.XPageScroller, org.wings.SCellRendererPane, org.wings.SPanel,
Method Summary | |
public SComponent | add(SComponent c) Adds a component to the container with null constraint at the end
of the internal list. | public void | add(SComponent c, Object constraint) Adds a component to the container with the given constraint at the end
of the internal list. | public SComponent | add(SComponent c, int index) Adds a component to the container with null constraint at the given
index. | public void | add(SComponent c, Object constraint, int index) Adds a component to the container with the given constraint at
the given index. | public SComponent | addComponent(SComponent c) Adds a component to the container with null constraint at the end
of the internal list. | public SComponent | addComponent(SComponent c, Object constraint) Adds a component to the container with the given constraint at the end
of the internal list. | public SComponent | addComponent(SComponent c, int index) Adds a component to the container with the given constraint at
the given index. | public SComponent | addComponent(SComponent c, Object constraint, int index) Adds a component to the container with the given constraint at
the given index. | public void | addContainerListener(SContainerListener l) Adds the specified container listener to receive container events
from this container. | public void | addNotify() | public Object | clone() CAVEAT this did not work yet... | protected void | fireContainerEvent(int type, SComponent comp) | public SComponent | getComponent(int i) | public int | getComponentCount() | protected ArrayList | getComponentList() | public SComponent[] | getComponents() | public Object | getConstraintAt(int i) | protected ArrayList | getConstraintList() | public SLayoutManager | getLayout() | public void | invite(ComponentVisitor visitor) Invite a ComponentVisitor. | public void | inviteEachComponent(ComponentVisitor visitor) Calls the visitor on each SComponent this container has. | protected boolean | isShowingChildren() Indicates if this container is actually showing it's children. | protected void | processContainerEvent(SContainerListener listener, SContainerEvent e) Processes container events occurring on this container by
dispatching them to any registered ContainerListener objects. | public void | remove(SComponent c) Removes the given component from the container. | public void | remove(int index) Removes the component at the given position from the container. | public void | removeAll() Removes all components from the container. | public void | removeContainerListener(SContainerListener l) Removes the specified container listener so it no longer receives
container events from this container. | public void | removeNotify() | public void | setCG(ContainerCG cg) | public void | setLayout(SLayoutManager l) Sets a new layout manager. | protected void | setParentFrame(SFrame f) Sets the parent frame. | public void | updateCG() |
SContainer | public SContainer(SLayoutManager l)(Code) | | creates a new container with the given layout
Parameters: l - the layout for this container |
SContainer | public SContainer()(Code) | | creates a new container with a Flowlayout as layout manager, like the
Swing default.
|
add | public SComponent add(SComponent c)(Code) | | Adds a component to the container with null constraint at the end
of the internal list.
Parameters: c - the component to add the added component |
add | public void add(SComponent c, Object constraint)(Code) | | Adds a component to the container with the given constraint at the end
of the internal list.
Parameters: c - the component to add Parameters: constraint - the constraint for this component |
add | public SComponent add(SComponent c, int index)(Code) | | Adds a component to the container with null constraint at the given
index.
Parameters: c - the component to add Parameters: index - the index of the component the added component |
add | public void add(SComponent c, Object constraint, int index)(Code) | | Adds a component to the container with the given constraint at
the given index.
Parameters: c - the component to add Parameters: index - the index of the component |
addComponent | public SComponent addComponent(SComponent c)(Code) | | Adds a component to the container with null constraint at the end
of the internal list.
Parameters: c - the component to add the added component |
addComponent | public SComponent addComponent(SComponent c, Object constraint)(Code) | | Adds a component to the container with the given constraint at the end
of the internal list.
Parameters: c - the component to add Parameters: constraint - the constraint for this component the added component |
addComponent | public SComponent addComponent(SComponent c, int index)(Code) | | Adds a component to the container with the given constraint at
the given index.
Parameters: c - the component to add Parameters: index - the index of the component the added component |
addComponent | public SComponent addComponent(SComponent c, Object constraint, int index)(Code) | | Adds a component to the container with the given constraint at
the given index.
Parameters: c - the component to add Parameters: index - the index of the component the added component |
addContainerListener | public void addContainerListener(SContainerListener l)(Code) | | Adds the specified container listener to receive container events
from this container.
If l is null, no exception is thrown and no action is performed.
Parameters: l - the container listener |
addNotify | public void addNotify()(Code) | | |
clone | public Object clone()(Code) | | CAVEAT this did not work yet... We need to clone the layout manager as
well, so SLayoutManager must be Cloneable
|
fireContainerEvent | protected void fireContainerEvent(int type, SComponent comp)(Code) | | |
getComponent | public SComponent getComponent(int i)(Code) | | returns the component at the given position
Parameters: i - position component at given pos |
getComponentCount | public int getComponentCount()(Code) | | returns the number of components in this container
number of components |
getConstraintAt | public Object getConstraintAt(int i)(Code) | | returns the constraint for the given component position
Parameters: i - position constraint for component at given position |
invite | public void invite(ComponentVisitor visitor) throws Exception(Code) | | Invite a ComponentVisitor.
Invokes visit(SContainer) on the ComponentVisitor.
Parameters: visitor - the visitor to be invited |
inviteEachComponent | public void inviteEachComponent(ComponentVisitor visitor) throws Exception(Code) | | Calls the visitor on each SComponent this container has. You might
want to call this in your visitor in visit(SContainer).
Parameters: visitor - an implementation of the ComponentVisitorinterface. |
isShowingChildren | protected boolean isShowingChildren()(Code) | | Indicates if this container is actually showing it's children. Default is true
true if SContainer.getComponents() are rendered, false if i.e the containerhides them (i.e minimized MDI window). |
processContainerEvent | protected void processContainerEvent(SContainerListener listener, SContainerEvent e)(Code) | | Processes container events occurring on this container by
dispatching them to any registered ContainerListener objects.
NOTE: This method will not be called unless container events
are enabled for this component; this happens when one of the
following occurs:
a) A ContainerListener object is registered via addContainerListener()
b) Container events are enabled via enableEvents()
Parameters: e - the container event |
remove | public void remove(int index)(Code) | | Removes the component at the given position from the container.
Parameters: index - remove the component at position indexfrom this container |
removeAll | public void removeAll()(Code) | | Removes all components from the container.
|
removeContainerListener | public void removeContainerListener(SContainerListener l)(Code) | | Removes the specified container listener so it no longer receives
container events from this container.
If l is null, no exception is thrown and no action is performed.
Parameters: l - the container listener |
removeNotify | public void removeNotify()(Code) | | |
setLayout | public void setLayout(SLayoutManager l)(Code) | | Sets a new layout manager.
Parameters: l - new layout manager |
setParentFrame | protected void setParentFrame(SFrame f)(Code) | | Sets the parent frame.
Parameters: f - parent frame |
updateCG | public void updateCG()(Code) | | |
Methods inherited from org.wings.SComponent | final public void addComponentListener(SComponentListener l)(Code)(Java Doc) public void addDynamicStyle(Style style)(Code)(Java Doc) final protected void addEventListener(Class<T> type, T listener)(Code)(Java Doc) public void addNotify()(Code)(Java Doc) final public void addParentFrameListener(SParentFrameListener l)(Code)(Java Doc) final public void addRenderListener(SRenderListener renderListener)(Code)(Java Doc) final public void addScriptListener(ScriptListener listener)(Code)(Java Doc) public void addStyle(String additionalCssClassName)(Code)(Java Doc) public Object clone()(Code)(Java Doc) protected void fireComponentChangeEvent(SComponentEvent aEvent)(Code)(Java Doc) public void fireFinalEvents()(Code)(Java Doc) protected void fireKeyEvents()(Code)(Java Doc) final public void fireRenderEvent(int type)(Code)(Java Doc) public ActionMap getActionMap()(Code)(Java Doc) public Color getBackground()(Code)(Java Doc) public SBorder getBorder()(Code)(Java Doc) public ComponentCG getCG()(Code)(Java Doc) final public Object getClientProperty(Object key)(Code)(Java Doc) public SPopupMenu getComponentPopupMenu()(Code)(Java Doc) public Style getDynamicStyle(Selector selector)(Code)(Java Doc) public Collection getDynamicStyles()(Code)(Java Doc) public int getFocusTraversalIndex()(Code)(Java Doc) public SFont getFont()(Code)(Java Doc) public Color getForeground()(Code)(Java Doc) public int getHorizontalAlignment()(Code)(Java Doc) public InputMap getInputMap()(Code)(Java Doc) public InputMap getInputMap(int condition)(Code)(Java Doc) final protected int getListenerCount(Class type)(Code)(Java Doc) final protected Object[] getListenerList()(Code)(Java Doc) final public EventListener[] getListeners(Class<? extends EventListener> type)(Code)(Java Doc) public String getLowLevelEventId()(Code)(Java Doc) final public String getName()(Code)(Java Doc) final public SContainer getParent()(Code)(Java Doc) public SFrame getParentFrame()(Code)(Java Doc) public SDimension getPreferredSize()(Code)(Java Doc) public RequestURL getRequestURL()(Code)(Java Doc) public boolean getResidesInForm()(Code)(Java Doc) public List<ScriptListener> getScriptListenerList()(Code)(Java Doc) public ScriptListener[] getScriptListeners()(Code)(Java Doc) final public Session getSession()(Code)(Java Doc) public boolean getShowAsFormComponent()(Code)(Java Doc) public String getStyle()(Code)(Java Doc) public String getToolTipText()(Code)(Java Doc) public int getVerticalAlignment()(Code)(Java Doc) public void invite(ComponentVisitor visitor) throws Exception(Code)(Java Doc) protected static boolean isDifferent(Object oldObject, Object newObject)(Code)(Java Doc) public boolean isEnabled()(Code)(Java Doc) public boolean isFocusOwner()(Code)(Java Doc) public boolean isRecursivelyVisible()(Code)(Java Doc) public boolean isReloadForced()(Code)(Java Doc) protected boolean isUpdatePossible()(Code)(Java Doc) public boolean isVisible()(Code)(Java Doc) protected String paramString()(Code)(Java Doc) protected void processComponentEvent(SComponentListener listener, SComponentEvent e)(Code)(Java Doc) protected boolean processKeyEvents(String[] values)(Code)(Java Doc) protected void processLowLevelEvent(String name, String[] values)(Code)(Java Doc) final public void putClientProperty(Object key, Object value)(Code)(Java Doc) final void register()(Code)(Java Doc) public void reload()(Code)(Java Doc) final protected void reloadIfChange(Object oldVal, Object newVal)(Code)(Java Doc) final protected void reloadIfChange(int oldVal, int newVal)(Code)(Java Doc) final protected void reloadIfChange(boolean oldVal, boolean newVal)(Code)(Java Doc) final protected void reloadIfChange(byte oldVal, byte newVal)(Code)(Java Doc) final protected void reloadIfChange(short oldVal, short newVal)(Code)(Java Doc) final protected void reloadIfChange(long oldVal, long newVal)(Code)(Java Doc) final protected void reloadIfChange(float oldVal, float newVal)(Code)(Java Doc) final protected void reloadIfChange(double oldVal, double newVal)(Code)(Java Doc) final protected void reloadIfChange(char oldVal, char newVal)(Code)(Java Doc) final public void removeComponentListener(SComponentListener l)(Code)(Java Doc) public void removeDynamicStyle(Selector selector)(Code)(Java Doc) final protected void removeEventListener(Class<T> type, T listener)(Code)(Java Doc) public void removeNotify()(Code)(Java Doc) final public void removeParentFrameListener(SParentFrameListener l)(Code)(Java Doc) final public void removeRenderListener(SRenderListener renderListener)(Code)(Java Doc) final public void removeScriptListener(ScriptListener listener)(Code)(Java Doc) public void removeStyle(String cssStyleClassName)(Code)(Java Doc) public void requestFocus()(Code)(Java Doc) public void scrollRectToVisible(Rectangle aRect)(Code)(Java Doc) public void setActionMap(ActionMap actionMap)(Code)(Java Doc) public void setAttribute(String cssPropertyName, String value)(Code)(Java Doc) public void setAttribute(CSSProperty property, String propertyValue)(Code)(Java Doc) public void setAttribute(Selector selector, CSSProperty property, String propertyValue)(Code)(Java Doc) public void setAttribute(Selector selector, CSSProperty property, SIcon icon)(Code)(Java Doc) public void setAttribute(Selector selector, CSSProperty property, Color color)(Code)(Java Doc) public void setAttributes(Selector selector, CSSAttributeSet attributes)(Code)(Java Doc) public void setBackground(Color color)(Code)(Java Doc) public void setBorder(SBorder border)(Code)(Java Doc) public void setCG(ComponentCG newCG)(Code)(Java Doc) public void setComponentPopupMenu(SPopupMenu popupMenu)(Code)(Java Doc) public void setDynamicStyles(Collection dynamicStyles)(Code)(Java Doc) public void setEnabled(boolean enabled)(Code)(Java Doc) public void setFocusTraversalIndex(int index)(Code)(Java Doc) public void setFont(SFont font)(Code)(Java Doc) public void setForeground(Color color)(Code)(Java Doc) public void setHorizontalAlignment(int alignment)(Code)(Java Doc) public void setInputMap(InputMap inputMap)(Code)(Java Doc) public void setInputMap(int condition, InputMap inputMap)(Code)(Java Doc) public void setName(String uniqueName)(Code)(Java Doc) public void setNameRaw(String uncheckedName)(Code)(Java Doc) public void setParent(SContainer parent)(Code)(Java Doc) protected void setParentFrame(SFrame parentFrame)(Code)(Java Doc) public void setPreferredSize(SDimension preferredSize)(Code)(Java Doc) public void setReloadForced(boolean forced)(Code)(Java Doc) public void setShowAsFormComponent(boolean showAsFormComponent)(Code)(Java Doc) public void setStyle(String cssClassName)(Code)(Java Doc) public void setToolTipText(String t)(Code)(Java Doc) public void setVerticalAlignment(int alignment)(Code)(Java Doc) public void setVisible(boolean visible)(Code)(Java Doc) public String toString()(Code)(Java Doc) final void unregister()(Code)(Java Doc) public void update(Update update)(Code)(Java Doc) public void updateCG()(Code)(Java Doc) public void write(Device s) throws IOException(Code)(Java Doc)
|
|
|