pt.moredata.wizard
Class SwingWizardGUI2

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Dialog
                  extended byjavax.swing.JDialog
                      extended bypt.moredata.wizard.SwingWizardGUI2
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants, pt.moredata.wizard.WizardGUI

public class SwingWizardGUI2
extends javax.swing.JDialog
implements pt.moredata.wizard.WizardGUI

SwingWizardGUI.java Descrição base do ambiente GUI usado na aplicação.
Neste objecto residem referências aos paineis, botões, frames, etc Company MoreData

Version:
$Revision: 1.4 $
Author:
pcarmo
See Also:
Serialized Form

Nested Class Summary
 
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
 
Field Summary
 
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
 
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, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
SwingWizardGUI2(java.awt.Frame parent, boolean modal)
          Creates new form SwingWizardGUI2
 
Method Summary
 void addTaskDescription(java.lang.String text)
          Adiciona uma descricao de uma tarefa a lista de tarefas.
 void closeWizard()
          Fecha a janela do wizard.
 void deselectTask(int taskIndex)
          Rescreve a descricao da tarefa com texto normal.
 javax.swing.JButton getBackButton()
          Devolve o botao para passar para o anterior.
 javax.swing.JButton getCancelButton()
          Devolve o botao para cancelar o wizard.
 javax.swing.JButton getFinishButton()
          Devolve o botao para terminar o wizard.
 javax.swing.JButton getNextButton()
          Devolve o botao para passar para o proximo.
 void selectTask(int taskIndex)
          Rescreve a descricao da tarefa com texto a bold.
 void setFormPanel(javax.swing.JPanel panel)
          Altera o panel principal, onde e apresentado o wizard.
 void setTitle(java.lang.String title)
          Define o titulo da frame do wizard.
 void show()
          Makes the Dialog visible.
 
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, 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, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, finalize, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, 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, 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, processContainerEvent, remove, removeAll, removeContainerListener, removeNotify, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, 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, 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, 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, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SwingWizardGUI2

public SwingWizardGUI2(java.awt.Frame parent,
                       boolean modal)
Creates new form SwingWizardGUI2

Method Detail

setFormPanel

public void setFormPanel(javax.swing.JPanel panel)
Altera o panel principal, onde e apresentado o wizard.

Specified by:
setFormPanel in interface pt.moredata.wizard.WizardGUI

getBackButton

public javax.swing.JButton getBackButton()
Devolve o botao para passar para o anterior.

Specified by:
getBackButton in interface pt.moredata.wizard.WizardGUI
Returns:
Referência ao botão para passar o anterior.

getNextButton

public javax.swing.JButton getNextButton()
Devolve o botao para passar para o proximo.

Specified by:
getNextButton in interface pt.moredata.wizard.WizardGUI
Returns:
Referência ao botão para passar para o proximo.

getCancelButton

public javax.swing.JButton getCancelButton()
Devolve o botao para cancelar o wizard.

Specified by:
getCancelButton in interface pt.moredata.wizard.WizardGUI
Returns:
Referência ao botao para cancelar o wizard.

getFinishButton

public javax.swing.JButton getFinishButton()
Devolve o botao para terminar o wizard.

Specified by:
getFinishButton in interface pt.moredata.wizard.WizardGUI
Returns:
Referência ao botão de terminar o wizard.

closeWizard

public void closeWizard()
Fecha a janela do wizard.

Specified by:
closeWizard in interface pt.moredata.wizard.WizardGUI

addTaskDescription

public void addTaskDescription(java.lang.String text)
Adiciona uma descricao de uma tarefa a lista de tarefas.

Specified by:
addTaskDescription in interface pt.moredata.wizard.WizardGUI

selectTask

public void selectTask(int taskIndex)
Rescreve a descricao da tarefa com texto a bold.

Specified by:
selectTask in interface pt.moredata.wizard.WizardGUI

deselectTask

public void deselectTask(int taskIndex)
Rescreve a descricao da tarefa com texto normal.

Specified by:
deselectTask in interface pt.moredata.wizard.WizardGUI

setTitle

public void setTitle(java.lang.String title)
Define o titulo da frame do wizard.

Parameters:
title - O novo titulo da frame do wizard.

show

public void show()
Makes the Dialog visible. If the dialog and/or its owner are not yet displayable, both are made displayable. The dialog will be validated prior to being made visible. If the dialog is already visible, this will bring the dialog to the front.

If the dialog is modal and is not already visible, this call will not return until the dialog is hidden by calling hide or dispose. It is permissible to show modal dialogs from the event dispatching thread because the toolkit will ensure that another event pump runs while the one which invoked this method is blocked.

See Also:
Component#hide, Component#isDisplayable, Component#validate, Dialog.isModal()