pt.moredata.netbeans.modules.moredatatemplates.wizard
Class WizardPanel

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended bypt.moredata.netbeans.modules.moredatatemplates.wizard.WizardPanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, org.openide.WizardDescriptor.Panel
Direct Known Subclasses:
ColumnSelectionPanel, ConnectPanel, FinishPanel, WelcomePanel

public abstract class WizardPanel
extends javax.swing.JPanel
implements org.openide.WizardDescriptor.Panel

Basic behaviour of the wizard panels. This class should be extended because is abstract.

Author:
Sérgio Ferreira
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
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
protected  Data data
          A reference to the object where the data collected during the iteration is stored.
 int DEFAULT_HEIGHT
          Default height of the panel
 int DEFAULT_WIDTH
          Default with of the panel
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, 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
WizardPanel()
          Constructor for the WizardPanel object
 
Method Summary
 void addChangeListener(javax.swing.event.ChangeListener changelistener)
          Rgeister a change listener to handle change events
 boolean canAdvance()
          Check if the component can advance
protected  void fireChange()
          Fire an event to all registred change listeners.
 java.awt.Component getComponent()
          Return a reference to the panel
protected  Data getData()
          Gets the information colected during the wizard iteration.
 org.openide.util.HelpCtx getHelp()
          Get the help to the component
 java.awt.Dimension getPreferredSize()
          Gets the preferredSize attribute of the panel
 boolean isValid()
          Check if the component is valid
 void readSettings(java.lang.Object obj)
          Read the data information.
 void removeChangeListener(javax.swing.event.ChangeListener changelistener)
          Remove a change event listener allready registred.
 void setData(Data _data)
          Gets the information colected during the wizard iteration.
 void storeSettings(java.lang.Object obj)
          Store the data information.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_WIDTH

public int DEFAULT_WIDTH
Default with of the panel


DEFAULT_HEIGHT

public int DEFAULT_HEIGHT
Default height of the panel


data

protected Data data
A reference to the object where the data collected during the iteration is stored.

Constructor Detail

WizardPanel

public WizardPanel()
Constructor for the WizardPanel object

Method Detail

getData

protected Data getData()
Gets the information colected during the wizard iteration.

Returns:
A reference to the data object

setData

public void setData(Data _data)
Gets the information colected during the wizard iteration.

Returns:
A reference to the data object

getComponent

public java.awt.Component getComponent()
Return a reference to the panel

Specified by:
getComponent in interface org.openide.WizardDescriptor.Panel
Returns:
The component value

getHelp

public org.openide.util.HelpCtx getHelp()
Get the help to the component

Specified by:
getHelp in interface org.openide.WizardDescriptor.Panel
Returns:
The help value

getPreferredSize

public java.awt.Dimension getPreferredSize()
Gets the preferredSize attribute of the panel

Returns:
The preferredSize value

readSettings

public void readSettings(java.lang.Object obj)
Read the data information. Defined in the org.openide.WizardDescriptor.Panel interface

Specified by:
readSettings in interface org.openide.WizardDescriptor.Panel
Parameters:
obj - Description of the Parameter

storeSettings

public void storeSettings(java.lang.Object obj)
Store the data information.

Specified by:
storeSettings in interface org.openide.WizardDescriptor.Panel
Parameters:
obj - Description of the Parameter

isValid

public boolean isValid()
Check if the component is valid

Specified by:
isValid in interface org.openide.WizardDescriptor.Panel
Returns:
The flag value. Right now return allways true

canAdvance

public boolean canAdvance()
Check if the component can advance

Returns:
Allways true

fireChange

protected void fireChange()
Fire an event to all registred change listeners.


addChangeListener

public void addChangeListener(javax.swing.event.ChangeListener changelistener)
Rgeister a change listener to handle change events

Specified by:
addChangeListener in interface org.openide.WizardDescriptor.Panel
Parameters:
changelistener - A reference to the event listener

removeChangeListener

public void removeChangeListener(javax.swing.event.ChangeListener changelistener)
Remove a change event listener allready registred.

Specified by:
removeChangeListener in interface org.openide.WizardDescriptor.Panel
Parameters:
changelistener - The listener to be removed.