|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
edu.princeton.toy.choosers.TExceptionChooserPane
public class TExceptionChooserPane
TExceptionChooserPane manages a set of colors for various indices and allows the user to change the colors for those indices. It also offers a disabled option which generally tells the index not to use that color (how that is done will be implementation dependant).
Nested Class Summary | |
---|---|
protected class |
TExceptionChooserPane.CheckBoxCell
CheckBoxCell is actually a JComponent containing a checkbox and a label. |
protected class |
TExceptionChooserPane.CheckBoxCellEditor
CheckBoxCellEditor provides a Component which edits a CheckBoxCell for the TExceptionChooser. |
protected class |
TExceptionChooserPane.CheckBoxCellRenderer
CheckBoxCellRenderer renders a CheckBoxCell for the TExceptionChooser. |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
static String |
UPDATE_COMMAND
The command that causes the TExceptionChooserPane to update its TristateButtonModels due to a change in one of those models. |
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 | |
---|---|
TExceptionChooserPane()
Creates a new TExceptionChooserPane. |
Method Summary | |
---|---|
boolean |
doCommand(String command,
Object extraInfo)
Performs a command based on the argument. |
boolean |
getWillThrow(int index)
Returns wheter or not the virtual toy machines should throw all exceptions of the given type. |
void |
setWillThrow(int index,
boolean willThrow)
Sets wheter or not the virtual toy machines should throw all exceptions of the given type. |
void |
stateChanged(ChangeEvent e)
Implement ChangeListener to listen to changes in the checkbox states. |
void |
valueChanged(TreeSelectionEvent e)
Implement TreeSelectionListener to listen to changes in the tree's selection. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String UPDATE_COMMAND
Constructor Detail |
---|
public TExceptionChooserPane()
Method Detail |
---|
public boolean getWillThrow(int index)
index
- The index of the exception type in the TExceptionType.TYPES array. An invalid
value will result in an ArrayIndexOutOfBoundsException.
TExceptionType.TYPES
public void setWillThrow(int index, boolean willThrow)
index
- The index of the exception type in the TExceptionType.TYPES array. An invalid
value will result in an ArrayIndexOutOfBoundsException.willThrow
- True iff all exceptions of the specified type should be thrown.TExceptionType.TYPES
public boolean doCommand(String command, Object extraInfo)
command
- A string representing the command. Note that pointer equality (not string
equality) is tested here, so it is important to use the string constants defined in this
class. An IllegalArgumentException will be thrown if the argument is invalid.
public void stateChanged(ChangeEvent e)
stateChanged
in interface ChangeListener
public void valueChanged(TreeSelectionEvent e)
valueChanged
in interface TreeSelectionListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |