com.sun.electric.tool.user.dialogs
Class PromptAt.Field

java.lang.Object
  extended by com.sun.electric.tool.user.dialogs.PromptAt.Field
Enclosing class:
PromptAt

public static class PromptAt.Field
extends java.lang.Object

Class to define a single entry in the custom prompt dialog.


Constructor Summary
PromptAt.Field(java.lang.String label)
          Constructor for a field in a prompt dialog that displays a message.
PromptAt.Field(java.lang.String label, boolean initial)
          Constructor for a field in a prompt dialog that chooses between Yes and No.
PromptAt.Field(java.lang.String label, java.awt.Color initial)
          Constructor for a field in a prompt dialog that edits a color value.
PromptAt.Field(java.lang.String id, javax.swing.JButton but)
          Constructor for a field in a prompt dialog that places a button.
PromptAt.Field(java.lang.String label, java.lang.String initial)
          Constructor for a field in a prompt dialog that edits a string.
PromptAt.Field(java.lang.String label, java.lang.String[] choices, java.lang.String initial)
          Constructor for a field in a prompt dialog that selects among different choices.
 
Method Summary
 java.lang.Object getFinal()
          Method to return the final value for a field, after the dialog has completed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PromptAt.Field

public PromptAt.Field(java.lang.String label)
Constructor for a field in a prompt dialog that displays a message.

Parameters:
label - the question to ask.

PromptAt.Field

public PromptAt.Field(java.lang.String label,
                      boolean initial)
Constructor for a field in a prompt dialog that chooses between Yes and No.

Parameters:
label - the question to ask.
initial - the default response.

PromptAt.Field

public PromptAt.Field(java.lang.String label,
                      java.lang.String initial)
Constructor for a field in a prompt dialog that edits a string.

Parameters:
label - the label of the string.
initial - the initial string value.

PromptAt.Field

public PromptAt.Field(java.lang.String label,
                      java.lang.String[] choices,
                      java.lang.String initial)
Constructor for a field in a prompt dialog that selects among different choices.

Parameters:
label - the label of the choice.
choices - the array of choices.
initial - the default choice.

PromptAt.Field

public PromptAt.Field(java.lang.String label,
                      java.awt.Color initial)
Constructor for a field in a prompt dialog that edits a color value.

Parameters:
label - the label of the color.
initial - the initial Color value.

PromptAt.Field

public PromptAt.Field(java.lang.String id,
                      javax.swing.JButton but)
Constructor for a field in a prompt dialog that places a button.

Parameters:
id - the returned value of the dialog if the button is pressed.
but - the button.
Method Detail

getFinal

public java.lang.Object getFinal()
Method to return the final value for a field, after the dialog has completed.

Returns:
the final value (dependent on the type of field).