public class NewIssueDialog extends NewObjectiveDialog implements java.awt.event.ItemListener
NewObjectiveDialog.InvalidInputException
javax.swing.JDialog.AccessibleJDialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
DISCRETE |
protected javax.swing.JPanel |
discretePanel |
protected javax.swing.JTextArea |
discreteTextArea |
protected javax.swing.JTextArea |
discreteTextEvaluationArea |
protected static java.lang.String |
INTEGER |
protected javax.swing.JTextField |
integerMaxField |
protected javax.swing.JTextField |
integerMinField |
protected javax.swing.JTextField |
integerOtherField |
protected javax.swing.JPanel |
integerPanel |
protected javax.swing.JTextField |
integerUtilityHighestValue |
protected javax.swing.JTextField |
integerUtilityLowestValue |
protected javax.swing.JPanel |
issuePropertyCards |
protected javax.swing.JPanel |
issuePropertyPanel |
protected javax.swing.JComboBox |
issueType |
protected java.lang.String[] |
issueTypes |
protected static java.lang.String |
REAL |
protected javax.swing.JTextField |
realLinearField |
protected javax.swing.JTextField |
realMaxField |
protected javax.swing.JTextField |
realMinField |
protected javax.swing.JTextField |
realOtherField |
protected javax.swing.JPanel |
realPanel |
protected javax.swing.JTextField |
realParameterField |
cancelButton, nameField, nameLabel, numberField, numberLabel, okButton, treeFrame
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
NewIssueDialog(DomainAndProfileEditorPanel owner) |
NewIssueDialog(DomainAndProfileEditorPanel owner,
boolean modal) |
NewIssueDialog(DomainAndProfileEditorPanel owner,
boolean modal,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Overrides actionPerformed from Objective.
|
protected Issue |
constructIssue() |
protected java.util.ArrayList<java.lang.Integer> |
getDiscreteEvalutions()
Gets the evaluations for the discrete issue from the input field in this
dialog.
|
protected java.lang.String[] |
getDiscreteValues() |
protected int |
getIntegerMax() |
protected int |
getIntegerMin() |
protected int |
getIntegerOther() |
protected double |
getRealLinear() |
protected double |
getRealMax() |
protected double |
getRealMin() |
protected double |
getRealOther() |
protected double |
getRealParameter() |
protected double |
getUtilityHeighestInteger() |
protected double |
getUtilityLowestInteger() |
protected boolean |
getWeightCheck() |
protected void |
initPanels() |
void |
itemStateChanged(java.awt.event.ItemEvent e) |
protected Issue |
updateIssue(Issue issue)
This updates the data structures after the issue dialog was completed and
user pressed OK.
|
constructObjective, getObjectiveDescription, getObjectiveName, getObjectiveNumber
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBack
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected static final java.lang.String DISCRETE
protected static final java.lang.String INTEGER
protected static final java.lang.String REAL
protected javax.swing.JComboBox issueType
protected java.lang.String[] issueTypes
protected javax.swing.JPanel issuePropertyCards
protected javax.swing.JPanel issuePropertyPanel
protected javax.swing.JPanel discretePanel
protected javax.swing.JPanel integerPanel
protected javax.swing.JPanel realPanel
protected javax.swing.JTextArea discreteTextArea
protected javax.swing.JTextArea discreteTextEvaluationArea
protected javax.swing.JTextField integerMinField
protected javax.swing.JTextField integerOtherField
protected javax.swing.JTextField integerUtilityLowestValue
protected javax.swing.JTextField integerUtilityHighestValue
protected javax.swing.JTextField integerMaxField
protected javax.swing.JTextField realMinField
protected javax.swing.JTextField realOtherField
protected javax.swing.JTextField realLinearField
protected javax.swing.JTextField realParameterField
protected javax.swing.JTextField realMaxField
public NewIssueDialog(DomainAndProfileEditorPanel owner)
public NewIssueDialog(DomainAndProfileEditorPanel owner, boolean modal)
public NewIssueDialog(DomainAndProfileEditorPanel owner, boolean modal, java.lang.String name)
protected void initPanels()
initPanels
in class NewObjectiveDialog
protected boolean getWeightCheck()
getWeightCheck
in class NewObjectiveDialog
protected java.lang.String[] getDiscreteValues() throws NewObjectiveDialog.InvalidInputException
protected java.util.ArrayList<java.lang.Integer> getDiscreteEvalutions() throws NewObjectiveDialog.InvalidInputException, java.lang.ClassCastException
InvalidInputException
- if illegal input is givenNewObjectiveDialog.InvalidInputException
java.lang.ClassCastException
protected int getIntegerMin() throws NewObjectiveDialog.InvalidInputException
protected int getIntegerOther() throws NewObjectiveDialog.InvalidInputException
protected double getUtilityLowestInteger() throws NewObjectiveDialog.InvalidInputException
protected double getUtilityHeighestInteger() throws NewObjectiveDialog.InvalidInputException
protected int getIntegerMax() throws NewObjectiveDialog.InvalidInputException
protected double getRealMin() throws NewObjectiveDialog.InvalidInputException
protected double getRealOther() throws NewObjectiveDialog.InvalidInputException
protected double getRealLinear() throws NewObjectiveDialog.InvalidInputException
protected double getRealParameter() throws NewObjectiveDialog.InvalidInputException
protected double getRealMax() throws NewObjectiveDialog.InvalidInputException
protected Issue constructIssue()
protected Issue updateIssue(Issue issue)
issue
- exception
- if issues can not be accepted. e.g. negative evaluation
values or if no evaluator available for issue while there is
a utiliyt space.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class NewObjectiveDialog
public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener