|
|||||||||
| 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
abbot.editor.editors.StepEditor
public abstract class StepEditor
Provide base-level step editor support with step change notification.
| Nested Class Summary |
|---|
| 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.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected static Color |
DEFAULT_FOREGROUND
|
(package private) JTextField |
description
|
protected static Color |
ERROR_FOREGROUND
|
protected static int |
MARGIN
|
| 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 abbot.script.XMLConstants |
|---|
TAG_ACTION, TAG_APPLETVIEWER, TAG_ARCHIVE, TAG_ARGS, TAG_ASSERT, TAG_AWT, TAG_AWTTESTSCRIPT, TAG_BORDER_TITLE, TAG_CALL, TAG_CLASS, TAG_CLASSPATH, TAG_CODE, TAG_CODEBASE, TAG_COMMENT, TAG_COMPONENT, TAG_COUNT, TAG_DELEGATE, TAG_DESC, TAG_DOCBASE, TAG_EVENT, TAG_EXPR, TAG_FILENAME, TAG_FIXTURE, TAG_FORKED, TAG_HEIGHT, TAG_HORDER, TAG_ICON, TAG_ID, TAG_INDEX, TAG_INVERT, TAG_INVOKER, TAG_KEYCHAR, TAG_KEYCODE, TAG_KIND, TAG_LABEL, TAG_LAUNCH, TAG_METHOD, TAG_MODIFIERS, TAG_NAME, TAG_PARAMS, TAG_PARENT, TAG_POLL_INTERVAL, TAG_PROPERTY, TAG_ROOT, TAG_SAMPLE, TAG_SCRIPT, TAG_SEQUENCE, TAG_SLOW, TAG_STOP_ON_ERROR, TAG_STOP_ON_FAILURE, TAG_TAG, TAG_TERMINATE, TAG_TEXT, TAG_THREADED, TAG_TIMEOUT, TAG_TITLE, TAG_TRIGGER, TAG_TYPE, TAG_VALUE, TAG_VMARGS, TAG_VORDER, TAG_WAIT, TAG_WEIGHTED, TAG_WIDTH, TAG_WINDOW, TAG_X, TAG_Y |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
StepEditor(Step step)
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent ev)
Respond to UI changes by updating the step data. |
Component |
add(Component comp)
Automatically add a vertical struct with a component. |
Component |
add(String name,
Component comp)
Auto-add a label with a component. |
protected ArrayEditor |
addArrayEditor(String title,
Object[] values)
|
protected JButton |
addButton(String title)
|
protected JCheckBox |
addCheckBox(String title,
boolean value)
|
protected JComboBox |
addComboBox(String title,
Object value,
Object[] values)
|
protected JComboBox |
addComponentSelector(String title,
String refid,
Resolver resolver,
boolean allowNone)
|
void |
addStepChangeListener(StepChangeListener scl)
|
protected JTextArea |
addTextArea(String title,
String value)
|
protected JTextField |
addTextField(String title,
String value)
|
protected JTextField |
addTextField(String title,
String value,
String defaultValue)
|
protected void |
fireStepChanged()
This method should be invoked after any change to step data. |
static StepEditor |
getEditor(Step step)
Return the appropriate editor panel for the given Step. |
Dimension |
getMaximumSize()
We don't want to become infinitely wide due to text fields. |
Dimension |
getMinimumSize()
Keep a reasonable minimum width. |
Dimension |
getPreferredScrollableViewportSize()
Always maintain the minimum width. |
Dimension |
getPreferredSize()
Keep a reasonable minimum width. |
int |
getScrollableBlockIncrement(Rectangle visible,
int orient,
int direction)
|
boolean |
getScrollableTracksViewportHeight()
|
boolean |
getScrollableTracksViewportWidth()
|
int |
getScrollableUnitIncrement(Rectangle visible,
int orient,
int direction)
|
void |
remove(Component comp)
Automatically remove the strut spacing and the component. |
void |
removeStepChangeListener(StepChangeListener scl)
|
String |
toString()
|
| 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 |
|---|
JTextField description
protected static final int MARGIN
protected static Color DEFAULT_FOREGROUND
protected static Color ERROR_FOREGROUND
| Constructor Detail |
|---|
public StepEditor(Step step)
| Method Detail |
|---|
public Dimension getMinimumSize()
getMinimumSize in class JComponentpublic Dimension getPreferredSize()
getPreferredSize in class JComponentpublic Dimension getMaximumSize()
getMaximumSize in class JComponent
protected JCheckBox addCheckBox(String title,
boolean value)
protected JComboBox addComponentSelector(String title,
String refid,
Resolver resolver,
boolean allowNone)
protected JComboBox addComboBox(String title,
Object value,
Object[] values)
protected JTextField addTextField(String title,
String value)
protected JTextField addTextField(String title,
String value,
String defaultValue)
protected ArrayEditor addArrayEditor(String title,
Object[] values)
protected JButton addButton(String title)
protected JTextArea addTextArea(String title,
String value)
public void remove(Component comp)
remove in class Container
public Component add(String name,
Component comp)
add in class Containerpublic Component add(Component comp)
add in class Containerpublic void actionPerformed(ActionEvent ev)
actionPerformed in interface ActionListenerpublic void addStepChangeListener(StepChangeListener scl)
public void removeStepChangeListener(StepChangeListener scl)
protected void fireStepChanged()
public static StepEditor getEditor(Step step)
public Dimension getPreferredScrollableViewportSize()
getPreferredScrollableViewportSize in interface Scrollable
public int getScrollableBlockIncrement(Rectangle visible,
int orient,
int direction)
getScrollableBlockIncrement in interface Scrollablepublic boolean getScrollableTracksViewportHeight()
getScrollableTracksViewportHeight in interface Scrollablepublic boolean getScrollableTracksViewportWidth()
getScrollableTracksViewportWidth in interface Scrollable
public int getScrollableUnitIncrement(Rectangle visible,
int orient,
int direction)
getScrollableUnitIncrement in interface Scrollablepublic String toString()
toString in class Component
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||