|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
org.openswing.swing.mdi.client.MDIFrame
Title: OpenSwing Framework
Description: MDI Frame.
Copyright: Copyright (C) 2006 Mauro Carniel
This file is part of OpenSwing Framework. This library is free software; you can redistribute it and/or modify it under the terms of the (LGPL) Lesser General Public License as published by the Free Software Foundation; GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. The author may be contacted at: maurocarniel@tin.it
Field Summary |
Fields inherited from class javax.swing.JFrame |
EXIT_ON_CLOSE |
Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
MDIFrame(MDIController client)
Contructor. |
Method Summary | |
static void |
add(InternalFrame frame)
Add an internal frame to the desktop pane and make it visible. |
static void |
add(InternalFrame frame,
boolean maximum)
Add an internal frame to the desktop pane and make it visible and maximazed. |
javax.swing.JButton |
addButtonToToolBar(java.awt.Image image,
java.lang.String tooltipText)
Add a button to the toolbar (and show toolbar if not already done). |
javax.swing.JButton |
addButtonToToolBar(java.awt.Image image,
java.lang.String tooltipText,
java.lang.String buttonText)
Add a button to the toolbar (and show toolbar if not already done). |
void |
addButtonToToolBar(javax.swing.JButton button)
Add a button to the toolbar (and show toolbar if not already done). |
javax.swing.JButton |
addButtonToToolBar(java.lang.String imageName,
java.lang.String tooltipText)
Add a button to the toolbar (and show toolbar if not already done). |
javax.swing.JButton |
addButtonToToolBar(java.lang.String imageName,
java.lang.String tooltipText,
java.lang.String buttonText)
Add a button to the toolbar (and show toolbar if not already done). |
void |
addSeparatorOnToolBar(java.awt.Dimension dim)
Appends a separator of a specified size to the end of the tool bar. |
void |
addSeparatorToMenuBar(java.lang.String topFunctionId,
java.lang.String bottomFunctionId)
Add a separator between the top menu item identifier and bottom menu item identifier, ONLY IF they are both visible. |
void |
addSeparatorToToolBar()
Appends a separator of default size to the end of the tool bar. |
static void |
addStatusComponent(javax.swing.JComponent c)
Add a new component to the status bar, from left to right. |
static void |
addStatusComponent(java.lang.String name,
javax.swing.JComponent c)
Add a new component to the status bar, from left to right and identify it with the specified component name. |
static ClientFacade |
getClientFacade()
|
static java.awt.Dimension |
getDesktopDimension()
|
static MDIFrame |
getInstance()
|
javax.swing.JMenu |
getMenuFile()
|
javax.swing.JMenu |
getMenuHelp()
|
javax.swing.JMenuItem |
getMenuItem(java.lang.String functionId)
|
int |
getProgressBarValue()
|
static InternalFrame |
getSelectedFrame()
|
static StatusBar |
getStatusBar()
|
static javax.swing.JComponent |
getStatusComponent(java.lang.String name)
|
static WindowMenu |
getWindowMenu()
|
boolean |
isLocked()
|
boolean |
isUniqueInstanceAlreadyOpened(InternalFrame frame)
|
void |
menuFileChangeLanguage_actionPerformed(java.awt.event.ActionEvent e)
|
void |
menuFileChangeUser_actionPerformed(java.awt.event.ActionEvent e)
|
void |
menuFileExit_actionPerformed(java.awt.event.ActionEvent e)
|
void |
menuHelpAbout_actionPerformed(java.awt.event.ActionEvent e)
|
void |
setBorderPainterOnToolBar(boolean borderPainted)
Sets the borderPainted property, which is
true if the border should be painted.
|
void |
setBusy(boolean busy)
Start the progress bar. |
void |
setFloatableOnToolBar(boolean floatable)
Sets the floatable property,
which must be true for the user to move the tool bar.
|
void |
setLocked(boolean locked)
|
void |
setOrientationOnToolBar(int orientation)
Sets the orientation of the tool bar. |
void |
setProgressBarValue(int progressBarValue)
Set progress bar value. |
void |
setRolloverOnToolBar(boolean rollover)
Sets the rollover state of this toolbar. |
static void |
setStatusBar(java.lang.String text)
Set status bar message. |
void |
windowClosed(javax.swing.JInternalFrame frame)
Callback invoked by WindowMenu when closing an internal frame. |
Methods inherited from class javax.swing.JFrame |
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, update |
Methods inherited from class java.awt.Frame |
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.awt.Window |
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, show, toBack, toFront |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
Constructor Detail |
public MDIFrame(MDIController client)
client
- interface used to manage some MDI Frame settingsMethod Detail |
public final boolean isLocked()
true
if menu window is locked false
otherwisepublic final void setLocked(boolean locked)
locked
- true
if menu window is locked false
otherwisepublic void menuFileExit_actionPerformed(java.awt.event.ActionEvent e)
public void menuFileChangeUser_actionPerformed(java.awt.event.ActionEvent e)
public void menuFileChangeLanguage_actionPerformed(java.awt.event.ActionEvent e)
public void menuHelpAbout_actionPerformed(java.awt.event.ActionEvent e)
public static final void add(InternalFrame frame)
frame
- internal framepublic static final void add(InternalFrame frame, boolean maximum)
frame
- internal framepublic static WindowMenu getWindowMenu()
public static java.awt.Dimension getDesktopDimension()
public final void setBusy(boolean busy)
setBusy
in interface BusyListener
busy
- true
to start progress bar, false
to stop itpublic final void windowClosed(javax.swing.JInternalFrame frame)
public final void setProgressBarValue(int progressBarValue)
progressBarValue
- value to set for the progress bar; if specified value is less than 0 then 0 is setted; if specified value is greater than 15 then it is set to 15.public final int getProgressBarValue()
public static MDIFrame getInstance()
public static ClientFacade getClientFacade()
public static InternalFrame getSelectedFrame()
public static final void setStatusBar(java.lang.String text)
text
- message to view into the status barpublic static final StatusBar getStatusBar()
public static final void addStatusComponent(javax.swing.JComponent c)
c
- component to addpublic static final void addStatusComponent(java.lang.String name, javax.swing.JComponent c)
name
- component name, used to identify itc
- component to addpublic static final javax.swing.JComponent getStatusComponent(java.lang.String name)
name
- component name, used to identify it
public final javax.swing.JMenu getMenuHelp()
public final javax.swing.JMenu getMenuFile()
public final javax.swing.JMenuItem getMenuItem(java.lang.String functionId)
functionId
- menu item identifier
public final void addSeparatorToMenuBar(java.lang.String topFunctionId, java.lang.String bottomFunctionId)
topFunctionId
- menu item identifier that is before the separator to addbottomFunctionId
- menu item identifier that is after the separator to addpublic final void addButtonToToolBar(javax.swing.JButton button)
button
- button to add to the toolbarpublic final javax.swing.JButton addButtonToToolBar(java.lang.String imageName, java.lang.String tooltipText)
imageName
- name of the image to show within the buttontooltipText
- tooltip text (it will be translated according to internationalization settings)
public final javax.swing.JButton addButtonToToolBar(java.awt.Image image, java.lang.String tooltipText)
image
- image to show within the buttontooltipText
- tooltip text (it will be translated according to internationalization settings)
public final javax.swing.JButton addButtonToToolBar(java.lang.String imageName, java.lang.String tooltipText, java.lang.String buttonText)
imageName
- name of the image to show within the buttontooltipText
- tooltip text (it will be translated according to internationalization settings)buttonText
- button text to show within the button (it will be translated according to internationalization settings)
public final javax.swing.JButton addButtonToToolBar(java.awt.Image image, java.lang.String tooltipText, java.lang.String buttonText)
image
- image to show within the buttontooltipText
- tooltip text (it will be translated according to internationalization settings)buttonText
- button text to show within the button (it will be translated according to internationalization settings)
public final void addSeparatorToToolBar()
public final void addSeparatorOnToolBar(java.awt.Dimension dim)
public final void setBorderPainterOnToolBar(boolean borderPainted)
borderPainted
property, which is
true
if the border should be painted.
The default value for this property is true
.
Some look and feels might not implement painted borders;
they will ignore this property.
#isBorderPainted
public final void setFloatableOnToolBar(boolean floatable)
floatable
property,
which must be true
for the user to move the tool bar.
Typically, a floatable tool bar can be
dragged into a different position within the same container
or out into its own window.
The default value of this property is true
.
Some look and feels might not implement floatable tool bars;
they will ignore this property.
#isFloatable
public final void setOrientationOnToolBar(int orientation)
HORIZONTAL
or VERTICAL
.
If orientation
is
an invalid value, an exception will be thrown.
java.lang.IllegalArgumentException
- if orientation is neither
HORIZONTAL
nor VERTICAL
#getOrientation
public final void setRolloverOnToolBar(boolean rollover)
The implementation of a look and feel may choose to ignore this property.
rollover
- true for rollover toolbar buttons; otherwise falsepublic final boolean isUniqueInstanceAlreadyOpened(InternalFrame frame)
true
if the specified instance of internal frame is already opened, false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |