com.memoire.bu
Class BuCommonImplementation

java.lang.Object
com.memoire.bu.BuCommonImplementation
- All Implemented Interfaces:
- java.awt.event.ActionListener, BuCommonInterface, BuCutCopyPasteInterface, BuSelectFindReplaceInterface, BuUndoRedoInterface, java.awt.event.ContainerListener, java.util.EventListener, javax.swing.event.InternalFrameListener, java.awt.event.WindowListener
- public class BuCommonImplementation
- extends java.lang.Object
- implements BuCommonInterface, java.awt.event.ContainerListener, java.awt.event.WindowListener, javax.swing.event.InternalFrameListener
Main part of the code to manage BuApplets and BuApplications.
Use to avoid redundant code.
app_
protected BuCommonInterface app_
content_
protected javax.swing.JComponent content_
main_panel_
protected BuMainPanel main_panel_
main_menubar_
protected BuMenuBar main_menubar_
main_toolbar_
protected BuToolBar main_toolbar_
splash_screen_
protected BuSplashScreen splash_screen_
glasspane_
private BuGlassPaneHelp glasspane_
al_
private java.awt.event.ActionListener al_
f1_
private javax.swing.KeyStroke f1_
BuCommonImplementation
public BuCommonImplementation()
getImplementation
public BuCommonImplementation getImplementation()
- Specified by:
getImplementation in interface BuCommonInterface
getApp
public BuCommonInterface getApp()
- Specified by:
getApp in interface BuCommonInterface
setApp
public void setApp(BuCommonInterface _app)
init
public void init()
- Mise en place des elements.
(Panneau principal, barres de menu et de boutons).
- Specified by:
init in interface BuCommonInterface
start
public void start()
- Specified by:
start in interface BuCommonInterface
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).
doLayout
public void doLayout()
- Specified by:
doLayout in interface BuCommonInterface
validate
public void validate()
- Specified by:
validate in interface BuCommonInterface
setTitle
public void setTitle(java.lang.String _s)
- Specified by:
setTitle in interface BuCommonInterface
getInformationsSoftware
public BuInformationsSoftware getInformationsSoftware()
- Specified by:
getInformationsSoftware in interface BuCommonInterface
setJMenuBar
public void setJMenuBar(javax.swing.JMenuBar _mb)
- Specified by:
setJMenuBar in interface BuCommonInterface
setContentPane
public void setContentPane(java.awt.Container _c)
- Specified by:
setContentPane in interface BuCommonInterface
getRootPane
public javax.swing.JRootPane getRootPane()
- Specified by:
getRootPane in interface BuCommonInterface
getFrame
public java.awt.Frame getFrame()
- Specified by:
getFrame in interface BuCommonInterface
getMainPanel
public BuMainPanel getMainPanel()
- Specified by:
getMainPanel in interface BuCommonInterface
setMainPanel
public void setMainPanel(BuMainPanel _p)
- Specified by:
setMainPanel in interface BuCommonInterface
getMainMenuBar
public BuMenuBar getMainMenuBar()
- Specified by:
getMainMenuBar in interface BuCommonInterface
setMainMenuBar
public void setMainMenuBar(BuMenuBar _mb)
- Specified by:
setMainMenuBar in interface BuCommonInterface
getMainToolBar
public BuToolBar getMainToolBar()
- Specified by:
getMainToolBar in interface BuCommonInterface
setMainToolBar
public void setMainToolBar(BuToolBar _tb)
- Specified by:
setMainToolBar in interface BuCommonInterface
getSpecificBar
public BuSpecificBar getSpecificBar()
- Specified by:
getSpecificBar in interface BuCommonInterface
setSpecificBar
public void setSpecificBar(BuSpecificBar _sb)
- Specified by:
setSpecificBar in interface BuCommonInterface
getSplashScreen
public BuSplashScreen getSplashScreen()
setSplashScreen
public void setSplashScreen(BuSplashScreen _ss)
addInternalFrame
public void addInternalFrame(javax.swing.JInternalFrame _f)
removeInternalFrame
public void removeInternalFrame(javax.swing.JInternalFrame _f)
activateInternalFrame
public void activateInternalFrame(javax.swing.JInternalFrame _f)
getCurrentInternalFrame
public javax.swing.JInternalFrame getCurrentInternalFrame()
getAllInternalFrames
public javax.swing.JInternalFrame[] getAllInternalFrames()
action
public void action(java.lang.String _action)
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent _evt)
- Description copied from interface:
java.awt.event.ActionListener
- This method is invoked when an action occurs.
- Specified by:
actionPerformed in interface BuCommonInterface
showOrHide
public void showOrHide(java.lang.String _a,
javax.swing.JComponent _c)
- Specified by:
showOrHide in interface BuCommonInterface
removeAction
public void removeAction(java.lang.String _cmd)
- Specified by:
removeAction in interface BuCommonInterface
setEnabledForAction
public void setEnabledForAction(java.lang.String _cmd,
boolean _enabled)
- Specified by:
setEnabledForAction in interface BuCommonInterface
setCheckedForAction
public void setCheckedForAction(java.lang.String _cmd,
boolean _checked)
- Specified by:
setCheckedForAction in interface BuCommonInterface
daughter
public void daughter(java.lang.String _action,
java.lang.String _name)
pointerHelp
public void pointerHelp()
contextHelp
public void contextHelp(java.lang.String _url)
contextHelp
public void contextHelp(javax.swing.JComponent _c)
installContextHelp
public void installContextHelp(javax.swing.JComponent _cp)
installContextHelp
public void installContextHelp(javax.swing.JComponent _cp,
java.lang.String _url)
setLookAndFeel
public void setLookAndFeel(java.lang.String _lnf)
- Modification du LookAndFeel.
- Specified by:
setLookAndFeel in interface BuCommonInterface
setMetalTheme
public void setMetalTheme(java.lang.String _arg)
setSlafTheme
public void setSlafTheme(java.lang.String _arg)
fullscreen
public void fullscreen()
confirmExit
public boolean confirmExit()
- Specified by:
confirmExit in interface BuCommonInterface
displayURL
public void displayURL(java.lang.String _url)
- Specified by:
displayURL in interface BuCommonInterface
isCloseFrameMode
public boolean isCloseFrameMode()
about
public void about()
- Specified by:
about in interface BuCommonInterface
cut
public void cut()
- Specified by:
cut in interface BuCommonInterface
copy
public void copy()
- Specified by:
copy in interface BuCommonInterface
duplicate
public void duplicate()
- Specified by:
duplicate in interface BuCommonInterface
find
public void find()
- Specified by:
find in interface BuCommonInterface
license
public void license()
- Specified by:
license in interface BuCommonInterface
paste
public void paste()
- Specified by:
paste in interface BuCommonInterface
undo
public void undo()
- Specified by:
undo in interface BuCommonInterface
redo
public void redo()
- Specified by:
redo in interface BuCommonInterface
replace
public void replace()
- Specified by:
replace in interface BuCommonInterface
select
public void select()
- Specified by:
select in interface BuCommonInterface
close
public void close()
exit
public void exit()
- Specified by:
exit in interface BuCommonInterface
print
public void print()
- Specified by:
print in interface BuCommonInterface
preview
public void preview()
windowActivated
public void windowActivated(java.awt.event.WindowEvent _evt)
- Description copied from interface:
java.awt.event.WindowListener
- This method is called when a window is activated. Only Frames and Dialogs
can be active, and the active window always contains the component with
focus.
- Specified by:
windowActivated in interface java.awt.event.WindowListener
windowClosed
public void windowClosed(java.awt.event.WindowEvent _evt)
- Description copied from interface:
java.awt.event.WindowListener
- This method is called when the window is closed.
- Specified by:
windowClosed in interface java.awt.event.WindowListener
windowClosing
public void windowClosing(java.awt.event.WindowEvent _evt)
- Description copied from interface:
java.awt.event.WindowListener
- This method is called when the user calls the system menu close
function, giving the program a chance to cancel the close.
- Specified by:
windowClosing in interface java.awt.event.WindowListener
windowDeactivated
public void windowDeactivated(java.awt.event.WindowEvent _evt)
- Description copied from interface:
java.awt.event.WindowListener
- This method is called when the window is deactivated.
- Specified by:
windowDeactivated in interface java.awt.event.WindowListener
windowDeiconified
public void windowDeiconified(java.awt.event.WindowEvent _evt)
- Description copied from interface:
java.awt.event.WindowListener
- This method is called when the window is deiconified.
- Specified by:
windowDeiconified in interface java.awt.event.WindowListener
windowIconified
public void windowIconified(java.awt.event.WindowEvent _evt)
- Description copied from interface:
java.awt.event.WindowListener
- This method is called when the window is iconified.
- Specified by:
windowIconified in interface java.awt.event.WindowListener
windowOpened
public void windowOpened(java.awt.event.WindowEvent _evt)
- Description copied from interface:
java.awt.event.WindowListener
- This method is called when the window is made visible.
- Specified by:
windowOpened in interface java.awt.event.WindowListener
internalFrameActivated
public void internalFrameActivated(javax.swing.event.InternalFrameEvent _evt)
- Description copied from interface:
javax.swing.event.InternalFrameListener
- Internal frame activated
- Specified by:
internalFrameActivated in interface javax.swing.event.InternalFrameListener
internalFrameDeactivated
public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent _evt)
- Description copied from interface:
javax.swing.event.InternalFrameListener
- Internal frame deactivated
- Specified by:
internalFrameDeactivated in interface javax.swing.event.InternalFrameListener
internalFrameClosed
public void internalFrameClosed(javax.swing.event.InternalFrameEvent _evt)
- Description copied from interface:
javax.swing.event.InternalFrameListener
- Internal frame closed
- Specified by:
internalFrameClosed in interface javax.swing.event.InternalFrameListener
internalFrameClosing
public void internalFrameClosing(javax.swing.event.InternalFrameEvent _evt)
- Description copied from interface:
javax.swing.event.InternalFrameListener
- Internal frame closing
- Specified by:
internalFrameClosing in interface javax.swing.event.InternalFrameListener
internalFrameDeiconified
public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent _evt)
- Description copied from interface:
javax.swing.event.InternalFrameListener
- Internal frame deiconified
- Specified by:
internalFrameDeiconified in interface javax.swing.event.InternalFrameListener
internalFrameIconified
public void internalFrameIconified(javax.swing.event.InternalFrameEvent _evt)
- Description copied from interface:
javax.swing.event.InternalFrameListener
- Internal frame iconified
- Specified by:
internalFrameIconified in interface javax.swing.event.InternalFrameListener
internalFrameOpened
public void internalFrameOpened(javax.swing.event.InternalFrameEvent _evt)
- Description copied from interface:
javax.swing.event.InternalFrameListener
- Internal frame opened
- Specified by:
internalFrameOpened in interface javax.swing.event.InternalFrameListener
componentAdded
public void componentAdded(java.awt.event.ContainerEvent _evt)
- Description copied from interface:
java.awt.event.ContainerListener
- This method is called when a component is added to the container.
- Specified by:
componentAdded in interface java.awt.event.ContainerListener
componentRemoved
public void componentRemoved(java.awt.event.ContainerEvent _evt)
- Description copied from interface:
java.awt.event.ContainerListener
- This method is called when a component is removed from the container.
- Specified by:
componentRemoved in interface java.awt.event.ContainerListener
ajouterActionsOutils
protected void ajouterActionsOutils(javax.swing.event.InternalFrameEvent _evt)
enleverActionsOutils
protected void enleverActionsOutils(javax.swing.event.InternalFrameEvent _evt)
selectionnerPremiere
protected void selectionnerPremiere(javax.swing.event.InternalFrameEvent _evt)
menusOrganisationFenetres
protected void menusOrganisationFenetres()