|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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.QtAbstractFrame<QVxMdiSubWindow>
com.sibvisions.rad.ui.qt.impl.container.QtInternalFrame
public class QtInternalFrame
The QtInternalFrame is the IInternalFrame
implementation for QT.
QVxMdiSubWindow,
IInternalFrame| Field Summary |
|---|
| Fields inherited from class com.sibvisions.rad.ui.qt.impl.container.QtAbstractFrame |
|---|
eventWindowActivated, eventWindowClosed, eventWindowClosing, eventWindowDeactivated, eventWindowDeiconified, eventWindowIconified, eventWindowOpened, menuBar |
| Fields inherited from class com.sibvisions.rad.ui.qt.impl.QtComponent |
|---|
parent |
| Fields inherited from class com.sibvisions.rad.ui.qt.impl.QtComponentBase |
|---|
factory |
| Fields inherited from class com.sibvisions.rad.ui.qt.impl.QtResource |
|---|
resource |
| Fields inherited from interface javax.rad.ui.container.IFrame |
|---|
ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, NORMAL |
| Fields inherited from interface javax.rad.ui.container.IToolBarPanel |
|---|
AREA_BOTTOM, AREA_LEFT, AREA_RIGHT, AREA_TOP |
| Fields inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
| Constructor Summary | |
|---|---|
QtInternalFrame(IDesktopPanel pDesktop)
Creates a new instance of QtInternalFrame for a
specifig IDesktopPanel. |
|
| Method Summary | |
|---|---|
protected void |
addIntern(IComponent pComponent,
Object pConstraints,
int pIndex)
Internal function, for adding physical component and supporting layers. |
void |
addToolBar(IToolBar pToolBar)
Adds a toolbar to this panel as last component. |
void |
addToolBar(IToolBar pToolBar,
int pIndex)
Adds a toolbar to this panel at a specified index. |
void |
dispose()
Releases all of the native screen resources used by this IWindow, its subcomponents, and all of its owned
children. That is, the resources for these IComponents
will be destroyed, any memory they consume will be returned to the
OS, and they will be marked as undisplayable.
The Note: When the last displayable window within the Java virtual machine (VM) is disposed of, the VM may terminate. See AWT Threading Issues for more information. |
IToolBar |
getToolBar(int pIndex)
Gets the IToolBar from a specific index. |
int |
getToolBarArea()
Gets the area where the toolbar(s) are added. |
int |
getToolBarCount()
Gets the number of IToolBars in this panel. |
int |
indexOfToolBar(IToolBar pToolBar)
Gets the nth position of an IToolBar in this panel. |
boolean |
isClosable()
Returns whether this internal frame can be closed by some user action. |
boolean |
isIconifiable()
Returns whether this internal frame can be iconified by some user action. |
boolean |
isMaximizable()
Returns whether this internal frame can be maximized by some user action. |
boolean |
isModal()
Returns the modal option of the internal frame. |
void |
pack()
Causes this IWindow to be sized to fit the preferred size and layouts of its subcomponents. If the window and/or its owner are not yet displayable, both are made displayable before calculating the preferred size. The IWindow will be validated after the preferredSize is calculated. |
void |
removeAllToolBars()
Removes all toolbars from this panel. |
protected void |
removeIntern(IComponent pComponent)
Internal function, for adding physical component and supporting layers. |
void |
removeToolBar(int pIndex)
Removes a toolbar from this panel. |
void |
removeToolBar(IToolBar pToolBar)
Removes a toolbar from this panel. |
void |
setClosable(boolean pClosable)
Sets whether this internal frame can be closed by some user action. |
void |
setIconifiable(boolean pIconifiable)
Sets whether this internal frame can be iconified by some user action. |
void |
setLayoutIntern(ILayout pLayout)
Internal function, for setting the layout. |
void |
setLocationRelativeTo(IComponent pComponent)
Sets the location of the window relative to the specified component. |
void |
setMaximizable(boolean pMaximizable)
Sets whether this internal frame can be maximized by some user action. |
void |
setMenuBar(IMenuBar pMenuBar)
Sets the menubar for this frame. |
void |
setModal(boolean pModal)
Sets the frame as modal frame. |
void |
setToolBarArea(int pArea)
Sets the display area where the toolbars will be added. |
void |
setVisible(boolean pVisible)
Shows or hides this component depending on the value of parameter b. |
void |
windowClosed()
Sends the UIWindowEvent.WINDOW_CLOSED event to all listeners. |
| Methods inherited from class com.sibvisions.rad.ui.qt.impl.container.QtAbstractFrame |
|---|
close, eventWindowActivated, eventWindowClosed, eventWindowClosing, eventWindowDeactivated, eventWindowDeiconified, eventWindowIconified, eventWindowOpened, getIconImage, getMenuBar, getState, getTitle, isActive, isClosed, isDisposed, isResizable, setCursor, setIconImage, setResizable, setState, setTitle, toBack, toFront, windowActivated, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened |
| Methods inherited from class com.sibvisions.rad.ui.qt.impl.QtContainer |
|---|
add, add, add, add, checkAdd, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout |
| 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, 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 |
| Methods inherited from class com.sibvisions.rad.ui.qt.impl.QtResource |
|---|
equals, getResource, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.rad.ui.container.IInternalFrame |
|---|
close, isClosed |
| Methods inherited from interface javax.rad.ui.container.IFrame |
|---|
getIconImage, getMenuBar, getState, getTitle, isResizable, setIconImage, setResizable, setState, setTitle |
| Methods inherited from interface javax.rad.ui.container.IWindow |
|---|
eventWindowActivated, eventWindowClosed, eventWindowClosing, eventWindowDeactivated, eventWindowDeiconified, eventWindowIconified, eventWindowOpened, isActive, isDisposed, toBack, toFront |
| 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.IResource |
|---|
getResource |
| 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.IResource |
|---|
getResource |
| Constructor Detail |
|---|
public QtInternalFrame(IDesktopPanel pDesktop)
QtInternalFrame for a
specifig IDesktopPanel.
pDesktop - the desktop| Method Detail |
|---|
public void setClosable(boolean pClosable)
setClosable in interface IInternalFramepClosable - a boolean value, where true means
this internal frame can be closedpublic boolean isClosable()
isClosable in interface IInternalFrametrue if this internal frame can be closedpublic void setIconifiable(boolean pIconifiable)
setIconifiable in interface IInternalFramepIconifiable - a boolean value, where true means
this internal frame can be iconifiedpublic boolean isIconifiable()
isIconifiable in interface IInternalFrametrue if this internal frame can be iconifiedpublic void setMaximizable(boolean pMaximizable)
setMaximizable in interface IInternalFramepMaximizable - a boolean value, where true means
this internal frame can be maximizedpublic boolean isMaximizable()
isMaximizable in interface IInternalFrametrue if this internal frame can be maximizedpublic void setModal(boolean pModal)
setModal in interface IInternalFramepModal - true to set this internal frame modal,
otherwise falsepublic boolean isModal()
isModal in interface IInternalFrametrue if the frame is modal otherwise falsepublic void setMenuBar(IMenuBar pMenuBar)
setMenuBar in interface IFramepMenuBar - the menubar being placed in the frameIFrame.getMenuBar()public void setLocationRelativeTo(IComponent pComponent)
pComponent is null, the
window is centered on the screen.
setLocationRelativeTo in interface IWindowpComponent - the component in relation to which the window's location
is determinedpublic void addToolBar(IToolBar pToolBar)
addToolBar in interface IToolBarPanelpToolBar - the toolbar to be added
public void addToolBar(IToolBar pToolBar,
int pIndex)
addToolBar in interface IToolBarPanelpToolBar - the toolbar to be addedpIndex - the index for the toolbarpublic void removeToolBar(IToolBar pToolBar)
removeToolBar in interface IToolBarPanelpToolBar - the toolbarpublic void removeToolBar(int pIndex)
removeToolBar in interface IToolBarPanelpIndex - the indexpublic void removeAllToolBars()
removeAllToolBars in interface IToolBarPanelpublic int getToolBarCount()
IToolBars in this panel.
getToolBarCount in interface IToolBarPanelpublic IToolBar getToolBar(int pIndex)
IToolBar from a specific index.
getToolBar in interface IToolBarPanelpIndex - the index
pIndexpublic int indexOfToolBar(IToolBar pToolBar)
IToolBar in this panel.
indexOfToolBar in interface IToolBarPanelpToolBar - the IToolBar to search
pToolBar in this panel or
-1 if pToolBar is not addedpublic void setToolBarArea(int pArea)
setToolBarArea in interface IToolBarPanelpArea - an area constant IToolBarPanel.AREA_TOP, IToolBarPanel.AREA_LEFT,
IToolBarPanel.AREA_BOTTOM, IToolBarPanel.AREA_RIGHTpublic int getToolBarArea()
getToolBarArea in interface IToolBarPanelIToolBarPanel.AREA_TOP, IToolBarPanel.AREA_LEFT,
IToolBarPanel.AREA_BOTTOM, IToolBarPanel.AREA_RIGHTpublic void dispose()
IWindow, its subcomponents, and all of its owned
children. That is, the resources for these IComponents
will be destroyed, any memory they consume will be returned to the
OS, and they will be marked as undisplayable.
The IWindow and its subcomponents can be made displayable
again by rebuilding the native resources with a subsequent call to
pack or show. The states of the recreated
Window and its subcomponents will be identical to the
states of these objects at the point where the IWindow
was disposed (not accounting for additional modifications between
those actions).
Note: When the last displayable window within the Java virtual machine (VM) is disposed of, the VM may terminate. See AWT Threading Issues for more information.
dispose in interface IWindowdispose in class QtAbstractFrame<QVxMdiSubWindow>IWindow.pack(),
IComponent.setVisible(boolean)public void windowClosed()
UIWindowEvent.WINDOW_CLOSED event to all listeners.
windowClosed in class QtAbstractFrame<QVxMdiSubWindow>public void pack()
pack in interface IWindowpack in class QtAbstractFrame<QVxMdiSubWindow>public void setVisible(boolean pVisible)
b.
setVisible in interface IComponentsetVisible in class QtComponentBase<QVxMdiSubWindow>pVisible - if true, shows this component; otherwise,
hides this componentIComponent.isVisible()public void setLayoutIntern(ILayout pLayout)
setLayoutIntern in class QtContainer<QVxMdiSubWindow>pLayout - the layout
protected void addIntern(IComponent pComponent,
Object pConstraints,
int pIndex)
addIntern in class QtContainer<QVxMdiSubWindow>pComponent - the Component to be addedpConstraints - an object expressing layout contraints for thispIndex - the position in the container's list at which to insert
the Component; -1 means insert at the end
componentQtContainer.add(IComponent, Object, int)protected void removeIntern(IComponent pComponent)
removeIntern in class QtContainer<QVxMdiSubWindow>pComponent - the Component to be removedQtContainer.remove(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||