|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--com.objectwave.tools.uiWidget.PropertyWizard
Useful for creating a wizard to set property values.
Field Summary | |
protected java.util.Stack |
back
|
protected java.lang.String |
currentPage
|
protected javax.swing.JPanel |
deck
|
protected java.util.Hashtable |
deckRequired
|
protected java.util.Hashtable |
decks
|
protected DeckLayout |
layout
|
protected java.util.Properties |
resultProperties
|
protected java.util.Properties |
sourceProperties
|
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 | |
PropertyWizard()
The PropertyWizard will consist of a center panel that contains the data for each page and a button bar along the button that allows the navigation of the wizard. |
Method Summary | |
void |
addField(java.lang.String path,
java.lang.String name,
java.lang.String value)
Create ui widgets to represent the fields and add them the 'card' that represents the path. |
protected void |
addFields(java.lang.String page,
java.lang.String[] properties)
|
FieldPanel |
addPath(java.lang.String path)
This will add the path to the hash of FieldPanels if it is not already there. |
void |
backClicked()
Go back to the previous page. |
void |
cancelClicked()
Clear the result properties and attempt to close the Window. |
boolean |
checkFinished(java.lang.String propertyKey)
Has the side effect of changing the state of the FINISHED button. |
java.lang.String |
checkNext(java.lang.String propertyKey)
Has the side effect of changing the state of the NEXT button. |
protected java.lang.String |
checkRequired(java.lang.String next)
Check to see that all required fields have values. |
void |
finishedClicked()
Attempt to close the Window. |
javax.swing.AbstractAction[] |
getActions()
These are the actions of the PropertyWizard. |
java.lang.String |
getData(java.lang.String path,
java.lang.String propertyName)
Get data from the result properties. |
javax.swing.JDialog |
getDialog(java.util.Properties props)
Convenience method for getting the property wizard as a dialog. |
protected javax.swing.AbstractAction[] |
getNewActions()
These are the actions of the PropertyWizard. |
PropertyField |
getNewPropertyField(java.lang.String path,
java.lang.String name)
Get the PropertyField defined for this property. |
java.util.Properties |
getResultProperties()
|
java.util.Properties |
getSourceProperties()
|
void |
helpClicked()
|
protected void |
initDefaults()
Some of the PropertyFields may have default values. |
protected boolean |
isSpecialProperty(java.lang.String str)
|
static void |
main(java.lang.String[] args)
|
void |
nextClicked()
Advance to the next page. |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
A change was made to a PropetyValue. |
void |
resetWizard()
|
void |
setData(java.lang.String path,
java.lang.String propertyName,
java.lang.String propertyValue)
Set one of the result values being defined by this wizard. |
void |
setPage(java.lang.String page)
|
protected void |
setPanelProps(PropertyField field,
java.lang.String path,
java.lang.String name)
Add various listeners, and panel properties. |
void |
setResultProperties(java.util.Properties propValue)
|
void |
setSourceProperties(java.util.Properties propValue)
|
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, getPreferredSize, 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, isValid, 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 |
protected java.lang.String currentPage
protected java.util.Stack back
protected DeckLayout layout
protected java.util.Hashtable decks
protected java.util.Hashtable deckRequired
protected javax.swing.JPanel deck
protected java.util.Properties sourceProperties
protected java.util.Properties resultProperties
Constructor Detail |
public PropertyWizard()
Method Detail |
public javax.swing.AbstractAction[] getActions()
protected javax.swing.AbstractAction[] getNewActions()
public void backClicked()
public void nextClicked()
public void finishedClicked()
public void cancelClicked()
public void helpClicked()
public java.util.Properties getResultProperties()
public void setResultProperties(java.util.Properties propValue)
public void resetWizard()
protected void addFields(java.lang.String page, java.lang.String[] properties)
protected boolean isSpecialProperty(java.lang.String str)
public void setPage(java.lang.String page)
public java.lang.String checkNext(java.lang.String propertyKey)
protected java.lang.String checkRequired(java.lang.String next)
public boolean checkFinished(java.lang.String propertyKey)
public java.util.Properties getSourceProperties()
public void setSourceProperties(java.util.Properties propValue)
public void addField(java.lang.String path, java.lang.String name, java.lang.String value)
path
- Path leading to the property.name
- String property name.value
- String Value of propertypublic FieldPanel addPath(java.lang.String path)
public PropertyField getNewPropertyField(java.lang.String path, java.lang.String name) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
path
- The path portion of the Label specification.name
- Fully qualified class name of a class that implements the PropertyField interface.
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
protected void setPanelProps(PropertyField field, java.lang.String path, java.lang.String name)
protected void initDefaults()
public javax.swing.JDialog getDialog(java.util.Properties props)
props
- The properties used to define the wizard functionallity.
public static void main(java.lang.String[] args)
public java.lang.String getData(java.lang.String path, java.lang.String propertyName)
public void setData(java.lang.String path, java.lang.String propertyName, java.lang.String propertyValue)
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |