public class CompilePanel extends ParameterPanel implements java.awt.event.ActionListener, java.awt.event.ItemListener, ToolListener, java.awt.event.WindowListener, java.awt.event.FocusListener
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
JAVA_SUFFIX |
static java.lang.String |
XML_SUFFIX |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
NO_BUTTONS, OK_BUTTON, OK_CANCEL_APPLY_BUTTONS, OK_CANCEL_BUTTONS
Constructor and Description |
---|
CompilePanel(ToolTable tools) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event) |
void |
dispose()
This method is called when the panel is finished with.
|
void |
focusGained(java.awt.event.FocusEvent e) |
void |
focusLost(java.awt.event.FocusEvent e) |
java.lang.String |
getBaseDir() |
java.lang.String |
getCompilerArguments() |
java.lang.String |
getCompilerClasspath() |
java.lang.String |
getCompilerCommand() |
java.lang.String |
getSourceDir() |
java.lang.String |
getSourceFilePath() |
java.lang.String |
getToolBox() |
java.lang.String |
getToolFile() |
java.lang.String |
getToolName() |
java.lang.String |
getToolPackage() |
java.lang.String |
getUnitName() |
java.lang.String |
getUnitPackage() |
void |
init()
This method is creates the panel layout
|
boolean |
isAutoCommitByDefault()
Auto commit is turned off
|
boolean |
isAutoCommitVisible()
Auto commit is hidden
|
boolean |
isCompileGUI() |
boolean |
isCompileSource() |
void |
itemStateChanged(java.awt.event.ItemEvent event) |
void |
okClicked()
Called when the ok button is clicked on the parameter window.
|
void |
reset()
This method is called when the panel is reset or cancelled.
|
void |
setCompilerArguments(java.lang.String arg)
Sets the compiler arguments
|
void |
setCompilerClasspath(java.lang.String classpath)
Sets the compiler class path
|
void |
setCompilerCommand(java.lang.String command)
Sets the compiler command
|
void |
setToolBox(java.lang.String toolbox)
Sets the current toolbox
|
void |
setToolFile(java.lang.String toolfile)
Sets the xml file for the tool
|
void |
setToolName(java.lang.String toolname)
Sets the tool name
|
void |
setToolPackage(java.lang.String pack)
Sets the package for the tool
|
void |
setUnitName(java.lang.String unitname)
Sets the name for the unit
|
void |
setUnitPackage(java.lang.String unitpack)
Sets the name for the unit
|
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) |
void |
windowActivated(java.awt.event.WindowEvent e) |
void |
windowClosed(java.awt.event.WindowEvent e) |
void |
windowClosing(java.awt.event.WindowEvent e) |
void |
windowDeactivated(java.awt.event.WindowEvent e) |
void |
windowDeiconified(java.awt.event.WindowEvent e) |
void |
windowIconified(java.awt.event.WindowEvent e) |
void |
windowOpened(java.awt.event.WindowEvent e) |
applyClicked, cancelClicked, disposePanel, getMenuBar, getParameter, getPreferredButtons, getTask, getWindow, getWindowInterface, isAlwaysOnTopPreferred, isAutoCommit, isParameterName, nodeAdded, nodeRemoved, parameterUpdate, parameterUpdated, removeParameter, setMenuBar, setParameter, setTask, setWindowInterface, taskDisposed, taskPropertyUpdate
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 final java.lang.String JAVA_SUFFIX
public static final java.lang.String XML_SUFFIX
public CompilePanel(ToolTable tools)
public void dispose()
dispose
in class ParameterPanel
public void init()
init
in class ParameterPanel
public boolean isCompileSource()
public boolean isCompileGUI()
public java.lang.String getSourceFilePath()
public java.lang.String getBaseDir()
public java.lang.String getSourceDir()
public java.lang.String getUnitName()
public void setUnitName(java.lang.String unitname)
public java.lang.String getUnitPackage()
public void setUnitPackage(java.lang.String unitpack)
public java.lang.String getToolBox()
public void setToolBox(java.lang.String toolbox)
public java.lang.String getCompilerCommand()
public void setCompilerCommand(java.lang.String command)
public java.lang.String getCompilerClasspath()
public void setCompilerClasspath(java.lang.String classpath)
public java.lang.String getCompilerArguments()
public void setCompilerArguments(java.lang.String arg)
public java.lang.String getToolName()
public void setToolName(java.lang.String toolname)
public java.lang.String getToolPackage()
public void setToolPackage(java.lang.String pack)
public java.lang.String getToolFile()
public void setToolFile(java.lang.String toolfile)
public void reset()
reset
in class ParameterPanel
public boolean isAutoCommitByDefault()
isAutoCommitByDefault
in class ParameterPanel
public boolean isAutoCommitVisible()
isAutoCommitVisible
in class ParameterPanel
public void okClicked()
okClicked
in class ParameterPanel
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 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
public void windowClosing(java.awt.event.WindowEvent e)
windowClosing
in interface java.awt.event.WindowListener
public void windowClosed(java.awt.event.WindowEvent e)
windowClosed
in interface java.awt.event.WindowListener
public void windowIconified(java.awt.event.WindowEvent e)
windowIconified
in interface java.awt.event.WindowListener
public void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified
in interface java.awt.event.WindowListener
public void windowActivated(java.awt.event.WindowEvent e)
windowActivated
in interface java.awt.event.WindowListener
public void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated
in interface java.awt.event.WindowListener
public void windowOpened(java.awt.event.WindowEvent e)
windowOpened
in interface java.awt.event.WindowListener
public void focusGained(java.awt.event.FocusEvent e)
focusGained
in interface java.awt.event.FocusListener
public void focusLost(java.awt.event.FocusEvent e)
focusLost
in interface java.awt.event.FocusListener