|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.ui.awt.impl.AwtResource<C>
com.sibvisions.rad.ui.awt.impl.AwtComponent<C>
com.sibvisions.rad.ui.awt.impl.AwtContainer<C>
com.sibvisions.rad.ui.swing.impl.container.SwingAbstractFrame<JVxInternalFrame>
com.sibvisions.rad.ui.swing.impl.container.SwingInternalFrame
public class SwingInternalFrame
The SwingInternalFrame is the IInternalFrame
implementation for swing.
JInternalFrame,
IInternalFrame| Field Summary |
|---|
| Fields inherited from class com.sibvisions.rad.ui.swing.impl.container.SwingAbstractFrame |
|---|
bDisposed, bWindowListener, eventWindowActivated, eventWindowClosed, eventWindowClosing, eventWindowDeactivated, eventWindowDeiconified, eventWindowIconified, eventWindowOpened, iconImage, menuBar |
| Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtComponent |
|---|
bComponentListener, bFocusListener, bKeyListener, bMouseListener, eventComponentMoved, eventComponentResized, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, eventSource, factory, parent |
| Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource |
|---|
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_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
| Constructor Summary | |
|---|---|
SwingInternalFrame(IDesktopPanel pDesktopPanel)
Creates a new instance of SwingInternalFrame. |
|
| Method Summary | |
|---|---|
protected void |
addWindowListenerToResource()
Adds a window listener for this component. |
void |
centerRelativeTo(IComponent pComponent)
Centers the window relative to the specified component. |
void |
close()
Closes this internal frame. |
void |
dispose()
Marks the frame as disposed. |
int |
getState()
Gets the state of this frame (obsolete). |
java.lang.String |
getTitle()
Gets the title of the frame. |
TranslationMap |
getTranslation()
Gets the translation for the window. |
void |
internalFrameActivated(javax.swing.event.InternalFrameEvent pEvent)
|
void |
internalFrameClosed(javax.swing.event.InternalFrameEvent pEvent)
Removes the internal frame from it's parent. |
void |
internalFrameClosing(javax.swing.event.InternalFrameEvent pEvent)
|
void |
internalFrameDeactivated(javax.swing.event.InternalFrameEvent pEvent)
|
void |
internalFrameDeiconified(javax.swing.event.InternalFrameEvent pEvent)
|
void |
internalFrameIconified(javax.swing.event.InternalFrameEvent pEvent)
|
void |
internalFrameOpened(javax.swing.event.InternalFrameEvent pEvent)
|
boolean |
isActive()
Returns whether this IWindow is active. |
boolean |
isClosable()
Returns whether this internal frame can be closed by some user action. |
boolean |
isClosed()
Returns whether this IInternalFrame is currently closed. |
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. |
boolean |
isResizable()
Indicates whether this frame is resizable by the user. |
void |
pack()
Causes this IWindow to be sized to fit the preferred size and layouts of its subcomponents. |
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 |
setIconImage(IImage pImage)
Sets the image to be displayed as the icon for this window. |
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 |
setResizable(boolean pResizable)
Sets whether this frame is resizable by the user. |
void |
setState(int pState)
Sets the state of this frame (obsolete). |
void |
setTitle(java.lang.String pTitle)
Sets the title for this frame to the specified string. |
void |
setTranslation(TranslationMap pTranslation)
Sets the translation for the window. |
void |
toBack()
If this IWindow is visible, sends this IWindow to the back and may cause it to lose focus or activation if it is the focused or active Window. |
void |
toFront()
If this IWindow is visible, brings this IWindow to the front and may make it the focused Window. |
| Methods inherited from class com.sibvisions.rad.ui.swing.impl.container.SwingAbstractFrame |
|---|
addIntern, addToolBar, addToolBar, addToolBarIntern, addWindowListener, eventWindowActivated, eventWindowClosed, eventWindowClosing, eventWindowDeactivated, eventWindowDeiconified, eventWindowIconified, eventWindowOpened, getIconImage, getMenuBar, getToolBar, getToolBarArea, getToolBarCount, indexOfToolBar, isDisposed, removeAllToolBars, removeIntern, removeToolBar, removeToolBar, removeToolBarIntern, setCursor, setLayoutIntern, setToolBarArea, setVisible |
| Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtContainer |
|---|
add, add, add, add, checkAdd, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout |
| Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource |
|---|
getResource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.rad.ui.container.IFrame |
|---|
getIconImage, getMenuBar |
| Methods inherited from interface javax.rad.ui.container.IWindow |
|---|
eventWindowActivated, eventWindowClosed, eventWindowClosing, eventWindowDeactivated, eventWindowDeiconified, eventWindowIconified, eventWindowOpened, isDisposed |
| Methods inherited from interface javax.rad.ui.container.IToolBarPanel |
|---|
addToolBar, addToolBar, getToolBar, getToolBarArea, getToolBarCount, indexOfToolBar, removeAllToolBars, removeToolBar, removeToolBar, setToolBarArea |
| 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 SwingInternalFrame(IDesktopPanel pDesktopPanel)
SwingInternalFrame.
pDesktopPanel - the DesktopPanel| Method Detail |
|---|
protected void addWindowListenerToResource()
addWindowListenerToResource in class SwingAbstractFrame<JVxInternalFrame>public java.lang.String getTitle()
getTitle in interface IFrameIFrame.setTitle(String)public void setTitle(java.lang.String pTitle)
setTitle in interface IFramepTitle - the title to be displayed in the frame's border.
A null value is treated as an empty string, "".IFrame.getTitle()public void setIconImage(IImage pImage)
setIconImage in interface IFramepImage - the icon image to be displayed.
If this parameter is null then the
icon image is set to the default image, which may vary
with platform.IFrame.getIconImage()public int getState()
In older versions of JDK a frame state could only be NORMAL or ICONIFIED. Since JDK 1.4 set of supported frame states is expanded and frame state is represented as a bitwise mask.
For compatibility with old programs this method still returns
Frame.NORMAL and Frame.ICONIFIED but
it only reports the iconic state of the frame, other aspects of
frame state are not reported by this method.
getState in interface IFrameFrame.NORMAL or Frame.ICONIFIED.IFrame.setState(int)public void setState(int pState)
In older versions of JDK a frame state could only be NORMAL or ICONIFIED. Since JDK 1.4 set of supported frame states is expanded and frame state is represented as a bitwise mask.
For compatibility with old programs this method still accepts
Frame.NORMAL and Frame.ICONIFIED but
it only changes the iconic state of the frame, other aspects of
frame state are not affected by this method.
setState in interface IFramepState - either Frame.NORMAL or
Frame.ICONIFIED.IFrame.getState(),
IFrame.setState(int)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 boolean isResizable()
isResizable in interface IFrametrue if the user can resize this frame;
false otherwise.IFrame.setResizable(boolean)public void setResizable(boolean pResizable)
setResizable in interface IFramepResizable - true if this frame is resizable;
false otherwise.IFrame.isResizable()public void pack()
pack in interface IWindowpublic void dispose()
dispose in interface IWindowdispose in class SwingAbstractFrame<JVxInternalFrame>IWindow.pack(),
IComponent.setVisible(boolean)public void close()
windowClosing event.
This method finishes by making the internal frame invisible and unselected,
and then firing an windowClosed event.
close in interface IInternalFrameIInternalFrame.isClosed(),
IWindow.dispose()public boolean isClosed()
IInternalFrame is currently closed.
isClosed in interface IInternalFrametrue if this internal frame is closed, false otherwisepublic boolean isActive()
isActive in interface IWindowpublic void toFront()
Places this IWindow at the top of the stacking order and shows it in front of any other Windows in this VM. No action will take place if this Window is not visible. Some platforms do not allow Windows which own other Windows to appear on top of those owned Windows. Some platforms may not permit this VM to place its Windows above windows of native applications, or Windows of other VMs. This permission may depend on whether a Window in this VM is already focused. Every attempt will be made to move this Window as high as possible in the stacking order; however, developers should not assume that this method will move this Window above all other windows in every situation.
Because of variations in native windowing systems, no guarantees about changes to the focused and active Windows can be made. Developers must never assume that this Window is the focused or active Window until this Window receives a WINDOW_GAINED_FOCUS or WINDOW_ACTIVATED event. On platforms where the top-most window is the focused window, this method will probably focus this Window, if it is not already focused. On platforms where the stacking order does not typically affect the focused window, this method will probably leave the focused and active Windows unchanged.
If this method causes this Window to be focused, and this Window is a Frame or a Dialog, it will also become activated. If this Window is focused, but it is not a Frame or a Dialog, then the first Frame or Dialog that is an owner of this Window will be activated.
If this window is blocked by modal dialog, then the blocking dialog is brought to the front and remains above the blocked window.
toFront in interface IWindowIWindow.toBack()public void toBack()
Places this IWindow at the bottom of the stacking order and shows it behind any other Windows in this VM. No action will take place is this Window is not visible. Some platforms do not allow Windows which are owned by other Windows to appear below their owners. Every attempt will be made to move this Window as low as possible in the stacking order; however, developers should not assume that this method will move this Window below all other windows in every situation.
Because of variations in native windowing systems, no guarantees about changes to the focused and active Windows can be made. Developers must never assume that this Window is no longer the focused or active Window until this Window receives a WINDOW_LOST_FOCUS or WINDOW_DEACTIVATED event. On platforms where the top-most window is the focused window, this method will probably cause this Window to lose focus. In that case, the next highest, focusable Window in this VM will receive focus. On platforms where the stacking order does not typically affect the focused window, this method will probably leave the focused and active Windows unchanged.
toBack in interface IWindowIWindow.toFront()public void setMenuBar(IMenuBar pMenuBar)
setMenuBar in interface IFramepMenuBar - the menubar being placed in the frameIFrame.getMenuBar()public void centerRelativeTo(IComponent pComponent)
pComponent is null, the
window is centered on the screen.
centerRelativeTo in interface IWindowpComponent - the component in relation to which the window's location
is determinedpublic 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 internalFrameOpened(javax.swing.event.InternalFrameEvent pEvent)
internalFrameOpened in interface javax.swing.event.InternalFrameListenerpublic void internalFrameClosing(javax.swing.event.InternalFrameEvent pEvent)
internalFrameClosing in interface javax.swing.event.InternalFrameListenerpublic void internalFrameClosed(javax.swing.event.InternalFrameEvent pEvent)
internalFrameClosed in interface javax.swing.event.InternalFrameListenerpEvent - the triggering eventpublic void internalFrameActivated(javax.swing.event.InternalFrameEvent pEvent)
internalFrameActivated in interface javax.swing.event.InternalFrameListenerpublic void internalFrameDeactivated(javax.swing.event.InternalFrameEvent pEvent)
internalFrameDeactivated in interface javax.swing.event.InternalFrameListenerpublic void internalFrameIconified(javax.swing.event.InternalFrameEvent pEvent)
internalFrameIconified in interface javax.swing.event.InternalFrameListenerpublic void internalFrameDeiconified(javax.swing.event.InternalFrameEvent pEvent)
internalFrameDeiconified in interface javax.swing.event.InternalFrameListenerpublic void setTranslation(TranslationMap pTranslation)
setTranslation in interface IWindowsetTranslation in class SwingAbstractFrame<JVxInternalFrame>pTranslation - the translation mappingpublic TranslationMap getTranslation()
getTranslation in interface IWindowgetTranslation in class SwingAbstractFrame<JVxInternalFrame>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||