|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.rad.genui.UIResource<C>
javax.rad.genui.UIComponent<C>
javax.rad.genui.UIContainer<C>
javax.rad.genui.container.AbstractWindow<C>
javax.rad.genui.container.AbstractFrame<IInternalFrame>
javax.rad.genui.container.UIInternalFrame
public class UIInternalFrame
Platform and technology independent InternalFrame. It is designed for use with AWT, Swing, SWT, JSP, JSF,... .
| Field Summary |
|---|
| Fields inherited from class javax.rad.genui.container.AbstractFrame |
|---|
iconImage, menuBar |
| Fields inherited from class javax.rad.genui.UIContainer |
|---|
allComponents, components |
| Fields inherited from class javax.rad.genui.UIComponent |
|---|
bTranslate, lLastTranslationModified, parent, popupMenu |
| Fields inherited from class javax.rad.genui.UIResource |
|---|
uiResource |
| 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 |
| Constructor Summary | |
|---|---|
|
UIInternalFrame(IDesktopPanel pDesktopPanel)
Creates a new instance of UIInternalFrame. |
protected |
UIInternalFrame(IInternalFrame pFrame,
IDesktopPanel pDesktopPanel)
Creates a new instance of UIInternalFrame with the given
internal frame. |
| Method Summary | |
|---|---|
void |
close()
Closes this internal frame. |
void |
dispose()
Releases all of the native screen resources used by this IWindow, its subcomponents, and all of its owned
children. |
boolean |
isClosable()
Returns whether this internal frame can be closed by some user action. |
boolean |
isClosed()
Returns whether this IInternalFrame is currently closed. |
boolean |
isGlobalActive()
Gets the active flag of the internal frame ignoring modal frames. |
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 |
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 |
setMaximizable(boolean pMaximizable)
Sets whether this internal frame can be maximized by some user action. |
void |
setModal(boolean pModal)
Sets the frame as modal frame. |
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. |
protected void |
topLevelAddNotify()
Top level window or frame has to start addNotify, if not notified. |
| Methods inherited from class javax.rad.genui.container.AbstractFrame |
|---|
addNotify, addToolBar, addToolBar, beforeAddNotify, getIconImage, getMenuBar, getState, getTitle, getToolBar, getToolBarArea, getToolBarCount, indexOfToolBar, isResizable, isToolBarMovable, removeAllToolBars, removeNotify, removeToolBar, removeToolBar, setIconImage, setMenuBar, setResizable, setState, setTitle, setToolBarArea, setToolBarMovable, updateTranslation |
| Methods inherited from class javax.rad.genui.container.AbstractWindow |
|---|
centerRelativeTo, eventWindowActivated, eventWindowClosed, eventWindowClosing, eventWindowDeactivated, eventWindowDeiconified, eventWindowIconified, eventWindowOpened, isActive, isDisposed, pack, setVisible |
| Methods inherited from class javax.rad.genui.UIContainer |
|---|
add, add, add, add, addInternal, checkAdd, contains, getComponent, getComponentCount, getComponents, getInsets, getLayout, getUIResourceContainer, indexOf, remove, remove, removeAll, removeInternal, setLayout, setUIResourceContainer, setZOrder |
| Methods inherited from class javax.rad.genui.UIResource |
|---|
eventResourceChanged, eventResourceChanged, fireResourceChanged, getObject, getObjectNames, getUIResource, hasResourceHandler, putObject, 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, getState, getTitle, isResizable, setIconImage, setMenuBar, setResizable, setState, setTitle |
| Methods inherited from interface javax.rad.ui.container.IWindow |
|---|
centerRelativeTo, eventWindowActivated, eventWindowClosed, eventWindowClosing, eventWindowDeactivated, eventWindowDeiconified, eventWindowIconified, eventWindowOpened, getTranslation, isActive, isDisposed, pack, setTranslation |
| 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 UIInternalFrame(IDesktopPanel pDesktopPanel)
UIInternalFrame.
pDesktopPanel - the associated desktop for the internal frameIInternalFrame,
IDesktopPanel
protected UIInternalFrame(IInternalFrame pFrame,
IDesktopPanel pDesktopPanel)
UIInternalFrame with the given
internal frame.
pFrame - the internal framepDesktopPanel - the associated desktop for the internal frameIInternalFrame,
IDesktopPanel| Method Detail |
|---|
public 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 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 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 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 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 IWindowtoFront in class AbstractWindow<IInternalFrame>IWindow.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 IWindowtoBack in class AbstractWindow<IInternalFrame>IWindow.toFront()protected void topLevelAddNotify()
topLevelAddNotify in class AbstractWindow<IInternalFrame>public 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).
dispose in interface IWindowdispose in class AbstractWindow<IInternalFrame>IWindow.pack(),
IComponent.setVisible(boolean)public boolean isGlobalActive()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||