|
||||||||||
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 IToolBar s 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 ContainerMethod Detail |
---|
public boolean isDisposed()
isDisposed
in interface IWindow
true
if the window is disposed, otherwiese false
public IImage getIconImage()
getIconImage
in interface IFrame
null
if this frame doesn't have an icon image.IFrame.setIconImage(IImage)
public IMenuBar getMenuBar()
getMenuBar
in interface IFrame
IFrame.setMenuBar(javax.rad.ui.menu.IMenuBar)
public void addToolBar(IToolBar pToolBar)
addToolBar
in interface IToolBarPanel
pToolBar
- the toolbar to be addedpublic void addToolBar(IToolBar pToolBar, int pIndex)
addToolBar
in interface IToolBarPanel
pToolBar
- the toolbar to be addedpIndex
- the index for the toolbarpublic void removeToolBar(IToolBar pToolBar)
removeToolBar
in interface IToolBarPanel
pToolBar
- the toolbarpublic void removeToolBar(int pIndex)
removeToolBar
in interface IToolBarPanel
pIndex
- the indexpublic void removeAllToolBars()
removeAllToolBars
in interface IToolBarPanel
public int getToolBarCount()
IToolBar
s in this panel.
getToolBarCount
in interface IToolBarPanel
public IToolBar getToolBar(int pIndex)
IToolBar
from a specific index.
getToolBar
in interface IToolBarPanel
pIndex
- the index
pIndex
public int indexOfToolBar(IToolBar pToolBar)
IToolBar
in this panel.
indexOfToolBar
in interface IToolBarPanel
pToolBar
- the IToolBar
to search
pToolBar
in this panel or
-1
if pToolBar
is not addedpublic void setToolBarArea(int pArea)
setToolBarArea
in interface IToolBarPanel
pArea
- an area constant IToolBarPanel.AREA_TOP
, IToolBarPanel.AREA_LEFT
,
IToolBarPanel.AREA_BOTTOM
, IToolBarPanel.AREA_RIGHT
public int getToolBarArea()
getToolBarArea
in interface IToolBarPanel
IToolBarPanel.AREA_TOP
, IToolBarPanel.AREA_LEFT
,
IToolBarPanel.AREA_BOTTOM
, IToolBarPanel.AREA_RIGHT
public WindowHandler eventWindowOpened()
eventWindowOpened
in interface IWindow
public WindowHandler eventWindowClosing()
eventWindowClosing
in interface IWindow
public WindowHandler eventWindowClosed()
eventWindowClosed
in interface IWindow
public WindowHandler eventWindowIconified()
eventWindowIconified
in interface IWindow
public WindowHandler eventWindowDeiconified()
eventWindowDeiconified
in interface IWindow
public WindowHandler eventWindowActivated()
eventWindowActivated
in interface IWindow
public WindowHandler eventWindowDeactivated()
eventWindowDeactivated
in interface IWindow
public void setCursor(ICursor pCursor)
setCursor
in interface IComponent
setCursor
in class AwtComponent<C extends Container>
pCursor
- the "global" cursorIComponent.isEnabled()
,
IComponent.getCursor()
,
Toolkit.createCustomCursor(java.awt.Image, java.awt.Point, java.lang.String)
,
ICursor
public void setVisible(boolean pVisible)
b
.
setVisible
in interface IComponent
setVisible
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 layoutprotected 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 IWindow
IWindow.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 |