public class GUIPanel extends javax.swing.JPanel implements WizardPanel, java.awt.event.ItemListener, java.awt.event.ActionListener, javax.swing.event.ListSelectionListener
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
protected ParamsPanelInterface |
parampanel
the panel defining the parameter that the GUI is built for
|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Modifier | Constructor and Description |
|---|---|
protected |
GUIPanel()
Constructs a GUI Panel for the GUI Editor
|
|
GUIPanel(ParamsPanelInterface parampanel)
Constructs a GUIPanel that builds an interface for the parameters defined in the specified parameter panel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent event) |
java.lang.String |
getCustomPanelName() |
java.lang.String |
getCustomPanelPackage() |
java.lang.String |
getDefaultValue(java.lang.String param) |
java.lang.String[] |
getGUIBuilderLines() |
java.lang.String |
getQualifiedCustomPanelName() |
WizardInterface |
getWizardInterface() |
protected void |
initLayout()
layout the panel
|
boolean |
isFinishEnabled() |
boolean |
isGenerateCustomPanel() |
boolean |
isNextEnabled() |
boolean |
isUsingCustomPanel() |
boolean |
isUsingGUIBuilder() |
void |
itemStateChanged(java.awt.event.ItemEvent event) |
void |
panelDisplayed()
Called when the panel is displayed in the wizard
|
void |
panelHidden()
Called when the panel is hidden in the wizard
|
void |
setCustomPanel(java.lang.String panelname)
Sets the parameter package name, setting isUsingCustomPanel to true
|
void |
setDefaultValue(java.lang.String param,
java.lang.String value)
Sets the default value for the given parameter, updating that defined in the parameter panel
|
void |
setGUIBuilderLines(java.lang.String[] lines)
Sets the gui builder lines, setting isUsingGUIBuilder yo true
|
void |
setNoInterface()
Sets isUsingGUIBuilder and isUsingCustomPanel to false
|
void |
setWizardInterface(WizardInterface wizard)
Sets the interface to the underlying wizard
|
void |
updateGUIComponent(java.lang.String component)
updates the currently selected GUI parameter to be associated with the specified component
|
protected void |
updateParameterList() |
void |
valueChanged(javax.swing.event.ListSelectionEvent event) |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleprotected ParamsPanelInterface parampanel
public GUIPanel(ParamsPanelInterface parampanel)
protected GUIPanel()
protected void initLayout()
public void setWizardInterface(WizardInterface wizard)
WizardPanelsetWizardInterface in interface WizardPanelpublic WizardInterface getWizardInterface()
getWizardInterface in interface WizardPanelpublic boolean isFinishEnabled()
isFinishEnabled in interface WizardPanelpublic boolean isNextEnabled()
isNextEnabled in interface WizardPanelpublic boolean isUsingGUIBuilder()
public boolean isUsingCustomPanel()
public java.lang.String[] getGUIBuilderLines()
public java.lang.String getCustomPanelName()
public java.lang.String getCustomPanelPackage()
public void setGUIBuilderLines(java.lang.String[] lines)
public void setCustomPanel(java.lang.String panelname)
public void setNoInterface()
public java.lang.String getQualifiedCustomPanelName()
public boolean isGenerateCustomPanel()
public java.lang.String getDefaultValue(java.lang.String param)
public void setDefaultValue(java.lang.String param,
java.lang.String value)
public void updateGUIComponent(java.lang.String component)
public void panelDisplayed()
panelDisplayed in interface WizardPanelprotected void updateParameterList()
public void panelHidden()
panelHidden in interface WizardPanelpublic void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed in interface java.awt.event.ActionListenerpublic void itemStateChanged(java.awt.event.ItemEvent event)
itemStateChanged in interface java.awt.event.ItemListenerpublic void valueChanged(javax.swing.event.ListSelectionEvent event)
valueChanged in interface javax.swing.event.ListSelectionListener