|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLayeredPane
javax.swing.JDesktopPane
com.quadrique.jbuildingblocks.gui.DesktopPanel
public class DesktopPanel
This is the base class of all desktop panel
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JDesktopPane |
|---|
LIVE_DRAG_MODE, OUTLINE_DRAG_MODE |
| Fields inherited from class javax.swing.JLayeredPane |
|---|
DEFAULT_LAYER, DRAG_LAYER, FRAME_CONTENT_LAYER, LAYER_PROPERTY, MODAL_LAYER, PALETTE_LAYER, POPUP_LAYER |
| Fields inherited from class javax.swing.JComponent |
|---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
DesktopPanel(String zBackgroundImage)
Constructor |
|
| Method Summary | |
|---|---|
void |
addFrame(JInternalFrame zFrame)
This method is used to add a frame to the desktop pane. |
void |
cascadeAllFrames()
This method is used to cascade all the frames in the default layer |
void |
closeAllFrames()
This method is used to releaseConnection all the frames in the default layer |
boolean |
closeCurrentFrame()
This method is used to releaseConnection the current frame (i.e. |
boolean |
closeFrame(JInternalFrame zFrame)
This method is used to remove a frame from the desktop pane. |
JInternalFrame |
getCurrentFrame()
Retrieves the frame that is on top of all the other frames (if any) in the default layer (- this method ignores any palette frame). |
Iterator<JInternalFrame> |
getFramesCollection()
The iterator to loop over all internal frames |
int |
getNbOfFrames()
|
JInternalFrame |
getSelectedFrame()
Retrieves the frame that is selected (if any) If there is a palette and if the palette has the selection, this method will return a reference to the palette. |
void |
minimizeAllFrames()
This method is used to minimize all the frames that are in the default layer (e.g. |
void |
nextFrame()
This method moves the next frame to the front and activates it. |
void |
paintComponent(Graphics g)
|
void |
previousFrame()
This method moves the previous frame to the front and activates it. |
void |
tileAllFramesHorizontally()
This method is used to tile all the frames in the default layer horizontally |
void |
tileAllFramesVertically()
This method is used to tile all the frames in the default layer vertically . |
| Methods inherited from class javax.swing.JDesktopPane |
|---|
getAccessibleContext, getAllFrames, getAllFramesInLayer, getDesktopManager, getDragMode, getUI, getUIClassID, remove, removeAll, selectFrame, setComponentZOrder, setDesktopManager, setDragMode, setSelectedFrame, setUI, updateUI |
| Methods inherited from class javax.swing.JLayeredPane |
|---|
getComponentCountInLayer, getComponentsInLayer, getIndexOf, getLayer, getLayer, getLayeredPaneAbove, getPosition, highestLayer, isOptimizedDrawingEnabled, lowestLayer, moveToBack, moveToFront, paint, putLayer, setLayer, setLayer, setPosition |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DesktopPanel(String zBackgroundImage)
zBackgroundImage - an optional (use null if you don't want one) background image| Method Detail |
|---|
public void paintComponent(Graphics g)
paintComponent in class JComponentpublic int getNbOfFrames()
public Iterator<JInternalFrame> getFramesCollection()
public void addFrame(JInternalFrame zFrame)
zFrame - the new frame to add to the desktop panepublic boolean closeFrame(JInternalFrame zFrame)
zFrame - the frame to remove
public void closeAllFrames()
public boolean closeCurrentFrame()
public void cascadeAllFrames()
throws Exception
Exception - an exception if an error occurs
public void tileAllFramesHorizontally()
throws Exception
Exception - an exception if an error occurs
public void tileAllFramesVertically()
throws Exception
Exception - an exception if an error occurs
public void minimizeAllFrames()
throws Exception
Exception - an exception if an error occurspublic JInternalFrame getCurrentFrame()
public JInternalFrame getSelectedFrame()
getSelectedFrame in class JDesktopPane
public void nextFrame()
throws Exception
Exception - an exception if an error occurs
public void previousFrame()
throws Exception
Exception - an exception if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||