java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
org.fudaa.fudaa.refonde.RefondeDialogPanneau
- All Implemented Interfaces:
- javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants
- public class RefondeDialogPanneau
- extends javax.swing.JDialog
Un dialogue destiné à afficher un panneau. Il définit des méthodes appelées
par les boutons action.
Il s'utilise comme une classe abstraite a dériver, en implementant les
méthodes actions. Par défaut, la méthode actionOK() appelle la méthode
actionApply().
- Version:
- $Revision: 1.1 $ $Date: 2001/11/28 09:32:26 $ by $Author: marchand $
| Nested classes inherited from class javax.swing.JDialog |
javax.swing.JDialog.AccessibleJDialog |
| Nested classes inherited from class java.awt.Dialog |
java.awt.Dialog.AccessibleAWTDialog |
| Nested classes inherited from class java.awt.Window |
java.awt.Window.AccessibleAWTWindow |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Fields inherited from class java.awt.Dialog |
|
| Fields inherited from class java.awt.Window |
|
| Fields inherited from class java.awt.Container |
|
|
Constructor Summary |
RefondeDialogPanneau()
Création d'une fenêtre dialogue avec centrage sur l'écran |
RefondeDialogPanneau(java.awt.Dialog _parent)
Création d'une fenêtre dialogue avec centrage sur le Dialog _parent |
RefondeDialogPanneau(java.awt.Dialog _parent,
int _option)
Création d'une fenêtre dialogue avec centrage sur le Dialog _parent et
affectation des boutons d'action (_option) |
RefondeDialogPanneau(java.awt.Dialog _parent,
javax.swing.JPanel _pn,
java.lang.String _titre)
Dialogue avec le titre, le panneau, et le Dialog parent. |
RefondeDialogPanneau(java.awt.Dialog _parent,
javax.swing.JPanel _pn,
java.lang.String _titre,
int _option)
Dialogue avec le titre, le panneau, le Dialog parent et les l'option des
boutons. |
RefondeDialogPanneau(java.awt.Frame _parent)
Création d'une fenêtre dialogue avec centrage sur le Frame _parent |
RefondeDialogPanneau(java.awt.Frame _parent,
int _option)
Création d'une fenêtre dialogue avec centrage sur le Frame _parent et
affectation des boutons d'action (_option) |
RefondeDialogPanneau(java.awt.Frame _parent,
javax.swing.JPanel _pn,
java.lang.String _titre)
Dialogue avec le titre, le panneau, et le Frame parent. |
RefondeDialogPanneau(java.awt.Frame _parent,
javax.swing.JPanel _pn,
java.lang.String _titre,
int _option)
Dialogue avec le titre, le panneau, le Frame parent et les l'option des
boutons. |
|
Method Summary |
protected void |
actionApply()
Méthode action pour le bouton APPLY à surcharger. |
protected void |
actionCancel()
Méthode action pour le bouton CANCEL à surcharger. |
protected void |
actionOK()
Méthode action pour le bouton OK à surcharger. |
void |
addActionListener(java.awt.event.ActionListener _listener)
Ajout d'un listener aux boutons action du dialog (OK, ANNULER, APPLIQUER). |
private void |
APPLY_BUTTON_actionPerformed(java.awt.event.ActionEvent _evt)
Bouton "Apply" pressé, traitement dans le listener du dialog. |
private void |
CANCEL_BUTTON_actionPerformed(java.awt.event.ActionEvent _evt)
Bouton "annuler" pressé, effacage du dialog, traitement dans le listener du dialog |
int |
getOption()
|
javax.swing.JPanel |
getPanneauPrincipal()
Retourne le panneau d'affichage. |
private void |
init(javax.swing.JPanel _pn,
java.lang.String _titre,
int _option)
|
private void |
OK_BUTTON_actionPerformed(java.awt.event.ActionEvent _evt)
Bouton "Ok" pressé, effacage du dialog, traitement dans le listener du dialog |
void |
removeActionListener(java.awt.event.ActionListener _listener)
Suppression d'un listener aux boutons action du dialog (OK, ANNULER, APPLIQUER). |
void |
setOption(int _option)
Définition des buttons actions à afficher (OK, CANCEL, APPLIQUER) |
void |
setPanneauPrincipal(javax.swing.JPanel _pn)
Affecte le panneau principal. |
| Methods inherited from class javax.swing.JDialog |
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getPreferredSize, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
| Methods inherited from class java.awt.Dialog |
addNotify, dispose, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show |
| Methods inherited from class java.awt.Window |
addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getGraphicsConfiguration, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, toBack, toFront |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, 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, transferFocusBackward, transferFocusUpCycle |
OK_CANCEL_OPTION
public static final int OK_CANCEL_OPTION
- See Also:
- Constant Field Values
OK_APPLY_OPTION
public static final int OK_APPLY_OPTION
- See Also:
- Constant Field Values
OK_CANCEL_APPLY_OPTION
public static final int OK_CANCEL_APPLY_OPTION
- See Also:
- Constant Field Values
OK_BUTTON
public javax.swing.JButton OK_BUTTON
CANCEL_BUTTON
public javax.swing.JButton CANCEL_BUTTON
APPLY_BUTTON
public javax.swing.JButton APPLY_BUTTON
pnMain_
protected javax.swing.JPanel pnMain_
option
protected int option
pnAction
private javax.swing.JPanel pnAction
lyAction
private com.memoire.bu.BuHorizontalLayout lyAction
pnAction1
private javax.swing.JPanel pnAction1
lyThis
private java.awt.BorderLayout lyThis
parent_
private java.awt.Window parent_
RefondeDialogPanneau
public RefondeDialogPanneau()
- Création d'une fenêtre dialogue avec centrage sur l'écran
RefondeDialogPanneau
public RefondeDialogPanneau(java.awt.Frame _parent)
- Création d'une fenêtre dialogue avec centrage sur le Frame _parent
RefondeDialogPanneau
public RefondeDialogPanneau(java.awt.Dialog _parent)
- Création d'une fenêtre dialogue avec centrage sur le Dialog _parent
RefondeDialogPanneau
public RefondeDialogPanneau(java.awt.Frame _parent,
int _option)
- Création d'une fenêtre dialogue avec centrage sur le Frame _parent et
affectation des boutons d'action (_option)
RefondeDialogPanneau
public RefondeDialogPanneau(java.awt.Dialog _parent,
int _option)
- Création d'une fenêtre dialogue avec centrage sur le Dialog _parent et
affectation des boutons d'action (_option)
RefondeDialogPanneau
public RefondeDialogPanneau(java.awt.Frame _parent,
javax.swing.JPanel _pn,
java.lang.String _titre)
- Dialogue avec le titre, le panneau, et le Frame parent.
RefondeDialogPanneau
public RefondeDialogPanneau(java.awt.Dialog _parent,
javax.swing.JPanel _pn,
java.lang.String _titre)
- Dialogue avec le titre, le panneau, et le Dialog parent.
RefondeDialogPanneau
public RefondeDialogPanneau(java.awt.Frame _parent,
javax.swing.JPanel _pn,
java.lang.String _titre,
int _option)
- Dialogue avec le titre, le panneau, le Frame parent et les l'option des
boutons.
RefondeDialogPanneau
public RefondeDialogPanneau(java.awt.Dialog _parent,
javax.swing.JPanel _pn,
java.lang.String _titre,
int _option)
- Dialogue avec le titre, le panneau, le Dialog parent et les l'option des
boutons.
init
private void init(javax.swing.JPanel _pn,
java.lang.String _titre,
int _option)
setPanneauPrincipal
public void setPanneauPrincipal(javax.swing.JPanel _pn)
- Affecte le panneau principal.
getPanneauPrincipal
public javax.swing.JPanel getPanneauPrincipal()
- Retourne le panneau d'affichage.
setOption
public void setOption(int _option)
- Définition des buttons actions à afficher (OK, CANCEL, APPLIQUER)
getOption
public int getOption()
addActionListener
public void addActionListener(java.awt.event.ActionListener _listener)
- Ajout d'un listener aux boutons action du dialog (OK, ANNULER, APPLIQUER). Le
bouton pressé est obtenu par getSource().
removeActionListener
public void removeActionListener(java.awt.event.ActionListener _listener)
- Suppression d'un listener aux boutons action du dialog (OK, ANNULER, APPLIQUER).
OK_BUTTON_actionPerformed
private void OK_BUTTON_actionPerformed(java.awt.event.ActionEvent _evt)
- Bouton "Ok" pressé, effacage du dialog, traitement dans le listener du dialog
APPLY_BUTTON_actionPerformed
private void APPLY_BUTTON_actionPerformed(java.awt.event.ActionEvent _evt)
- Bouton "Apply" pressé, traitement dans le listener du dialog.
CANCEL_BUTTON_actionPerformed
private void CANCEL_BUTTON_actionPerformed(java.awt.event.ActionEvent _evt)
- Bouton "annuler" pressé, effacage du dialog, traitement dans le listener du dialog
actionOK
protected void actionOK()
- Méthode action pour le bouton OK à surcharger. Pas défaut, la méthode
appelle la méthode actionApply() qui doit être surchargée.
actionApply
protected void actionApply()
- Méthode action pour le bouton APPLY à surcharger.
actionCancel
protected void actionCancel()
- Méthode action pour le bouton CANCEL à surcharger.