public class UnitPanel extends javax.swing.JPanel implements java.awt.event.ItemListener, java.awt.event.ActionListener, java.awt.event.FocusListener, WizardPanel, ToolListener
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_INPUT_NODES |
static int |
DEFAULT_OUTPUT_NODES |
static java.lang.String |
UNLIMITED |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
UnitPanel(ToolTable tools)
Constructs a panel for editing general properties of a tool.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event) |
void |
focusGained(java.awt.event.FocusEvent event) |
void |
focusLost(java.awt.event.FocusEvent event) |
java.lang.String |
getAuthor() |
java.lang.String |
getDate() |
int |
getDefaultInputNodes() |
int |
getDefaultOutputNodes() |
java.lang.String |
getHelpFile() |
int |
getMaximumInputNodes() |
int |
getMaximumOutputNodes() |
int |
getMinimumInputNodes() |
int |
getMinimumOutputNodes() |
java.lang.String |
getPopUpDescription() |
java.lang.String |
getSourceClass() |
java.lang.String |
getSourcePackage() |
java.lang.String |
getToolBox() |
java.lang.String |
getUnitName() |
java.lang.String |
getUnitPackage() |
WizardInterface |
getWizardInterface() |
boolean |
isFinishEnabled() |
boolean |
isIncludeCopyright() |
boolean |
isNextEnabled() |
void |
itemStateChanged(java.awt.event.ItemEvent event)
Enable/disable resizable input/output nodes
|
void |
panelDisplayed()
Called when the panel is displayed in the wizard
|
void |
panelHidden()
Called when the panel is hidden in the wizard
|
void |
setWizardInterface(WizardInterface wizard)
Sets the interface to the underlying wizard
|
void |
toolAdded(Tool tool)
Called when a new tool is added
|
void |
toolBoxAdded(Toolbox toolbox)
Called when a Tool Box is added
|
void |
toolboxNameChanged(Toolbox toolbox,
java.lang.String newName) |
void |
toolboxNameChanging(Toolbox toolbox,
java.lang.String newName) |
void |
toolBoxRemoved(Toolbox toolbox)
Called when a Tool Box is Removed
|
void |
toolRemoved(Tool tool)
Called when a tool is removed
|
void |
toolsAdded(java.util.List<Tool> tools) |
void |
toolsRemoved(java.util.List<Tool> tools) |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, 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, update
add, 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, validateTree
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, 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, transferFocusUpCycle
public static int DEFAULT_INPUT_NODES
public static int DEFAULT_OUTPUT_NODES
public static java.lang.String UNLIMITED
public UnitPanel(ToolTable tools)
public void setWizardInterface(WizardInterface wizard)
WizardPanel
setWizardInterface
in interface WizardPanel
public WizardInterface getWizardInterface()
getWizardInterface
in interface WizardPanel
public boolean isFinishEnabled()
isFinishEnabled
in interface WizardPanel
public boolean isNextEnabled()
isNextEnabled
in interface WizardPanel
public java.lang.String getSourceClass()
public java.lang.String getSourcePackage()
public java.lang.String getUnitName()
public java.lang.String getUnitPackage()
public java.lang.String getToolBox()
public java.lang.String getAuthor()
public java.lang.String getPopUpDescription()
public java.lang.String getDate()
public java.lang.String getHelpFile()
public boolean isIncludeCopyright()
public int getDefaultInputNodes()
public int getDefaultOutputNodes()
public int getMinimumInputNodes()
public int getMaximumInputNodes()
public int getMinimumOutputNodes()
public int getMaximumOutputNodes()
public void panelDisplayed()
panelDisplayed
in interface WizardPanel
public void panelHidden()
panelHidden
in interface WizardPanel
public void itemStateChanged(java.awt.event.ItemEvent event)
itemStateChanged
in interface java.awt.event.ItemListener
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
public void focusGained(java.awt.event.FocusEvent event)
focusGained
in interface java.awt.event.FocusListener
public void focusLost(java.awt.event.FocusEvent event)
focusLost
in interface java.awt.event.FocusListener
public void toolsAdded(java.util.List<Tool> tools)
toolsAdded
in interface ToolListener
public void toolsRemoved(java.util.List<Tool> tools)
toolsRemoved
in interface ToolListener
public void toolAdded(Tool tool)
toolAdded
in interface ToolListener
public void toolRemoved(Tool tool)
toolRemoved
in interface ToolListener
public void toolBoxAdded(Toolbox toolbox)
toolBoxAdded
in interface ToolListener
public void toolBoxRemoved(Toolbox toolbox)
toolBoxRemoved
in interface ToolListener
public void toolboxNameChanging(Toolbox toolbox, java.lang.String newName)
toolboxNameChanging
in interface ToolListener
public void toolboxNameChanged(Toolbox toolbox, java.lang.String newName)
toolboxNameChanged
in interface ToolListener