com.sibvisions.rad.ui.qt.impl.container
Class QtPanel
java.lang.Object
com.sibvisions.rad.ui.qt.impl.QtResource<C>
com.sibvisions.rad.ui.qt.impl.QtComponentBase<C>
com.sibvisions.rad.ui.qt.impl.QtComponent<C>
com.sibvisions.rad.ui.qt.impl.QtContainer<C>
com.sibvisions.rad.ui.qt.impl.container.QtPanel
- All Implemented Interfaces:
- IPanel, IAlignmentConstants, IComponent, IContainer, IResource
public class QtPanel
- extends QtContainer<C>
- implements IPanel
The QtPanel is the IPanel
implementation for QT.
- See Also:
IPanel
|
Constructor Summary |
QtPanel()
Creates a new instance of QtPanel. |
|
Method Summary |
void |
add(IComponent pComponent,
Object pConstraints,
int pIndex)
Adds the specified IComponent to this container with the specified
constraints at the specified index. Also notifies the layout
manager to add the component to the this container's layout using
the specified constraints object. |
IImage |
getBackgroundImage()
Gets the background image of the panel. |
void |
setBackgroundImage(IImage pImage)
Sets a background image for the panel. |
| Methods inherited from class com.sibvisions.rad.ui.qt.impl.QtContainer |
add, add, add, addIntern, checkAdd, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, removeIntern, setLayout, setLayoutIntern |
| Methods inherited from class com.sibvisions.rad.ui.qt.impl.QtComponent |
addStyle, capture, getBackground, getBounds, getCursor, getFont, getForeground, getHorizontalAlignment, getLocation, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getStyleSheet, getToolTipText, getVerticalAlignment, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFocusable, setFont, setForeground, setHorizontalAlignment, setLocation, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setResourceVisible, setSize, setToolTipText, setVerticalAlignment |
| Methods inherited from class com.sibvisions.rad.ui.qt.impl.QtComponentBase |
eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getFactory, isVisible, setFactory, setVisible |
| Methods inherited from interface javax.rad.ui.IContainer |
add, add, add, add, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout |
| Methods inherited from interface javax.rad.ui.IComponent |
capture, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getCursor, getFactory, getFont, getForeground, getLocation, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getToolTipText, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFocusable, setFont, setForeground, setLocation, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setSize, setToolTipText, setVisible |
QtPanel
public QtPanel()
- Creates a new instance of
QtPanel.
setBackgroundImage
public void setBackgroundImage(IImage pImage)
- Sets a background image for the panel.
- Specified by:
setBackgroundImage in interface IPanel
- Parameters:
pImage - the background image
getBackgroundImage
public IImage getBackgroundImage()
- Gets the background image of the panel.
- Specified by:
getBackgroundImage in interface IPanel
- Returns:
- the background image or
null if no background is set
add
public void add(IComponent pComponent,
Object pConstraints,
int pIndex)
- Adds the specified
IComponent to this container with the specified
constraints at the specified index. Also notifies the layout
manager to add the component to the this container's layout using
the specified constraints object.
- Specified by:
add in interface IContainer- Overrides:
add in class QtContainer<C extends QWidget>
- Parameters:
pComponent - the IComponent to be addedpConstraints - an object expressing layout contraints for thispIndex - the position in the container's list at which to insert
the IComponent; -1 means insert at the end
component- See Also:
IComponent
Copyright © 2009 SIB Visions GmbH. All Rights Reserved.