|
||||||||||
| 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<C>
C - the Container.public abstract class SwingAbstractFrame<C extends Container>
The SwingAbstractFrame is the IFrame
implementation for swing.
I is a top-level window with a title and a border.
The size of the frame includes any area designated for the border.
JFrame,
IFrame| Field Summary | |
|---|---|
protected boolean |
bDisposed
indicates whether the frame is disposed. |
protected WindowHandler |
eventWindowActivated
EventHandler for windowActivated. |
protected WindowHandler |
eventWindowClosed
EventHandler for windowClosed. |
protected WindowHandler |
eventWindowClosing
EventHandler for windowClosing. |
protected WindowHandler |
eventWindowDeactivated
EventHandler for windowDeactivated. |
protected WindowHandler |
eventWindowDeiconified
EventHandler for windowDeiconified. |
protected WindowHandler |
eventWindowIconified
EventHandler for windowIconified. |
protected WindowHandler |
eventWindowOpened
EventHandler for windowOpened. |
protected IImage |
iconImage
the icon image. |
protected IMenuBar |
menuBar
the menu bar. |
| Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtComponent |
|---|
eventComponentMoved, eventComponentResized, 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_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
| Constructor Summary | |
|---|---|
SwingAbstractFrame(C pContainer)
Creates a new instance of SwingAbstractFrame. |
|
| Method Summary | |
|---|---|
protected void |
addIntern(Component 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. |
protected void |
addToolBarIntern(JToolBar pToolBar,
int pIndex)
Adds the toolbar at a specific index. |
void |
dispose()
Marks the frame as disposed. |
WindowHandler |
eventWindowActivated()
The EventHandler for the window activated event. |
WindowHandler |
eventWindowClosed()
The EventHandler for the window closed event. |
WindowHandler |
eventWindowClosing()
The EventHandler for the window closing event. |
WindowHandler |
eventWindowDeactivated()
The EventHandler for the window deactivated event. |
WindowHandler |
eventWindowDeiconified()
The EventHandler for the window deiconified event. |
WindowHandler |
eventWindowIconified()
The EventHandler for the window iconified event. |
WindowHandler |
eventWindowOpened()
The EventHandler for the window opened event. |
IImage |
getIconImage()
Returns the image to be displayed as the icon for this frame. |
IMenuBar |
getMenuBar()
Returns the menubar set on this frame. |
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 |
isDisposed()
Checks whether the window is disposed already. |
void |
removeAllToolBars()
Removes all toolbars from this panel. |
protected void |
removeIntern(Component 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. |
protected void |
removeToolBarIntern(JToolBar pToolBar)
Removes the toolbar from the panel. |
void |
setCursor(ICursor pCursor)
Sets the cursor of the glass pane as "global" cursor. |
protected void |
setLayoutIntern(LayoutManager pLayoutManager)
Internal function, for setting the layout. |
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. |
| 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 |
|---|
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.IFrame |
|---|
getState, getTitle, isResizable, setIconImage, setMenuBar, setResizable, setState, setTitle |
| Methods inherited from interface javax.rad.ui.container.IWindow |
|---|
centerRelativeTo, isActive, pack, 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 |
| Field Detail |
|---|
protected WindowHandler eventWindowOpened
protected WindowHandler eventWindowClosing
protected WindowHandler eventWindowClosed
protected WindowHandler eventWindowActivated
protected WindowHandler eventWindowDeactivated
protected WindowHandler eventWindowIconified
protected WindowHandler eventWindowDeiconified
protected IImage iconImage
protected IMenuBar menuBar
protected boolean bDisposed
| Constructor Detail |
|---|
public SwingAbstractFrame(C pContainer)
SwingAbstractFrame.
pContainer - the Container| Method Detail |
|---|
public boolean isDisposed()
isDisposed in interface IWindowtrue if the window is disposed, otherwiese falsepublic IImage getIconImage()
getIconImage in interface IFramenull
if this frame doesn't have an icon image.IFrame.setIconImage(IImage)public IMenuBar getMenuBar()
getMenuBar in interface IFrameIFrame.setMenuBar(javax.rad.ui.menu.IMenuBar)public 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 WindowHandler eventWindowOpened()
eventWindowOpened in interface IWindowpublic WindowHandler eventWindowClosing()
eventWindowClosing in interface IWindowpublic WindowHandler eventWindowClosed()
eventWindowClosed in interface IWindowpublic WindowHandler eventWindowIconified()
eventWindowIconified in interface IWindowpublic WindowHandler eventWindowDeiconified()
eventWindowDeiconified in interface IWindowpublic WindowHandler eventWindowActivated()
eventWindowActivated in interface IWindowpublic WindowHandler eventWindowDeactivated()
eventWindowDeactivated in interface IWindowpublic void setCursor(ICursor pCursor)
setCursor in interface IComponentsetCursor in class AwtComponent<C extends Container>pCursor - the "global" cursorIComponent.isEnabled(),
IComponent.getCursor(),
Toolkit.createCustomCursor(java.awt.Image, java.awt.Point, java.lang.String),
ICursorpublic void setVisible(boolean pVisible)
b.
setVisible in interface IComponentsetVisible in class AwtComponent<C extends Container>pVisible - if true, shows this component; otherwise,
hides this componentIComponent.isVisible()protected void setLayoutIntern(LayoutManager pLayoutManager)
setLayoutIntern in class AwtContainer<C extends Container>pLayoutManager - the layout
protected void addIntern(Component pComponent,
Object pConstraints,
int pIndex)
addIntern in class AwtContainer<C extends Container>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
componentAwtContainer.add(IComponent, Object, int)protected void removeIntern(Component pComponent)
removeIntern in class AwtContainer<C extends Container>pComponent - the Component to be removedAwtContainer.remove(int)public void dispose()
dispose in interface IWindowIWindow.pack(),
IComponent.setVisible(boolean)
protected void addToolBarIntern(JToolBar pToolBar,
int pIndex)
pToolBar - the toolbar to be addedpIndex - the positionprotected void removeToolBarIntern(JToolBar pToolBar)
pToolBar - the toolbar to be removed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||