|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyu.ac.bg.etf.javaqx.core.AbstractDisposable
yu.ac.bg.etf.javaqx.qswing.JQComponent
yu.ac.bg.etf.javaqx.qswing.JQContainer
JQContainer is a component that contains other QSwing components.
Field Summary |
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.JQComponent |
listenerList |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQContainerProperties |
PROPERTY_LAYOUT_MANAGER |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQComponentProperties |
PROPERTY_BACKGROUND, PROPERTY_COMPONENT_ORIENTATION, PROPERTY_CONTEXT_MENU, PROPERTY_ENABLED, PROPERTY_FIXED_SIZE, PROPERTY_FOCUSABLE, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_INSETS, PROPERTY_LOCALE, PROPERTY_MAXIMUM_SIZE, PROPERTY_MINIMUM_SIZE, PROPERTY_NAME, PROPERTY_OPAQUE, PROPERTY_PREFERRED_SIZE, PROPERTY_RESOURCE_BUNDLE_NAME, PROPERTY_STATUS_TIP_TEXT, PROPERTY_STYLE_SHEET, PROPERTY_TOOL_TIP_TEXT, PROPERTY_VISIBLE, PROPERTY_WHATS_THIS_TEXT |
Constructor Summary | |
JQContainer()
Constructs new JQContainer object. |
|
JQContainer(LayoutManager layoutManager)
Constructs new JQContainer object. |
Method Summary | |
JQComponent |
add(JQComponent component)
Appends the specified component to the end of this container. |
JQComponent |
add(JQComponent component,
int index)
Adds the specified component to this container at the given position. |
JQComponent |
add(JQComponent component,
java.lang.Object constraints)
Appends the specified component to the end of this container. |
JQComponent |
add(JQComponent component,
java.lang.Object constraints,
int index)
Inserts the specified component at the specified index. |
protected JQComponent |
addImpl(JQComponent component,
java.lang.Object constraints,
int index)
Adds new component to the container. |
void |
doLayout()
Lays out this container. |
JQComponent |
getComponent(int index)
Returns the component at specified index. |
int |
getComponentCount()
Returns the number of components in this container. |
int |
getComponentIndex(JQComponent component)
Returns the index of the specified component. |
JQComponent[] |
getComponents()
Returns all the components in this container. |
LayoutManager |
getLayout()
Returns layout manager of this component. |
Dimension |
getMaximumSize()
Returns maximum size of the component. |
Dimension |
getMinimumSize()
Returns minimum size of the component. |
JQComponent[] |
getOwnedComponents()
Return an array containing all the components this component currently owns. |
Dimension |
getPreferredSize()
Returns preferred size of the component. |
void |
invalidate()
Invalidates the component. |
void |
pack()
Sets the size of the container to fit the preferred size and layouts of its subcomponents. |
protected java.lang.String |
paramString()
Returns parameters string. |
JQComponent |
remove(int index)
Removes index specified component from this container. |
void |
remove(JQComponent component)
Removes the specified component from this container. |
void |
removeAll()
Removes all the components from this container. |
void |
setBackground(Color background)
Sets background color of the component. |
void |
setComponentOrientation(ComponentOrientation orientation)
Sets component orientation. |
void |
setForeground(Color background)
Sets foreground color of the component. |
void |
setLayout(LayoutManager layoutManager)
Sets the layout manager for this container. |
void |
updateLocalization()
Updates localization. |
void |
validate()
Validates the component. |
Methods inherited from class yu.ac.bg.etf.javaqx.core.AbstractDisposable |
addDisposeListener, dispose, disposedCheck, disposedErrorString, finalize, isDisposed, removeDisposeListener |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JQContainer()
public JQContainer(LayoutManager layoutManager)
layoutManager
- the layout managerMethod Detail |
public JQComponent add(JQComponent component)
component
- the component to be added
public JQComponent add(JQComponent component, int index)
component
- the component to be addedindex
- the position at which to insert the component, or -1
to append the component to the end
public JQComponent add(JQComponent component, java.lang.Object constraints)
component
- the component to be addedconstraints
- the layout constraints
public JQComponent add(JQComponent component, java.lang.Object constraints, int index)
component
- the component to be addedconstraints
- the layout constraintsindex
- the component index
public JQComponent remove(int index)
index
- the index of the component to be removed
public void remove(JQComponent component)
component
- the component to be removedpublic void removeAll()
public int getComponentCount()
public JQComponent getComponent(int index)
index
- the index of the component
java.lang.IndexOutOfBoundsException
- if index is out of range
((index < 0) | (index >= getComponentCount())).public JQComponent[] getComponents()
public int getComponentIndex(JQComponent component)
component
- the component
public LayoutManager getLayout()
public void setLayout(LayoutManager layoutManager)
layoutManager
- the layout managerpublic void doLayout()
public void pack()
protected JQComponent addImpl(JQComponent component, java.lang.Object constraints, int index)
component
- the componentconstraints
- the constraintsindex
- the component index
public Dimension getPreferredSize()
getPreferredSize
in class JQComponent
public Dimension getMaximumSize()
getMaximumSize
in class JQComponent
public Dimension getMinimumSize()
getMinimumSize
in class JQComponent
public void setComponentOrientation(ComponentOrientation orientation)
setComponentOrientation
in class JQComponent
orientation
- the component orientationpublic void validate()
validate
in class JQComponent
public void invalidate()
invalidate
in class JQComponent
public void setBackground(Color background)
setBackground
in class JQComponent
background
- the background color of the componentpublic void setForeground(Color background)
setForeground
in class JQComponent
background
- the background color of the componentpublic void updateLocalization()
updateLocalization
in class JQComponent
public JQComponent[] getOwnedComponents()
getOwnedComponents
in class JQComponent
protected java.lang.String paramString()
paramString
in class JQComponent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |