|
||||||||||
| 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
weka.gui.beans.EnvironmentField
public class EnvironmentField
Widget that displays a label and a combo box for selecting environment variables. The enter arbitrary text, select an environment variable or a combination of both. Any variables are resolved (if possible) and resolved values are displayed in a tip-text.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
TOOL_TIP_TEXT_KEY, 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 | |
|---|---|
EnvironmentField()
Construct an EnvironmentField with no label. |
|
EnvironmentField(Environment env)
Construct an EnvironmentField with no label. |
|
EnvironmentField(String label)
Constructor. |
|
EnvironmentField(String label,
Environment env)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener pcl)
|
String |
getAsText()
|
Component |
getCustomEditor()
|
JPanel |
getCustomPanel()
Gets the custom panel for the object. |
String |
getJavaInitializationString()
|
String[] |
getTags()
|
String |
getText()
Return the text from the combo box. |
Object |
getValue()
|
boolean |
isPaintable()
|
static void |
main(String[] args)
Main method for testing this class |
void |
paintValue(Graphics gfx,
Rectangle box)
|
void |
removePropertyChangeListener(PropertyChangeListener pcl)
|
void |
setAsText(String s)
|
void |
setEditable(boolean editable)
Set the editable status of the combo box. |
void |
setEnabled(boolean enabled)
Set the enabled status of the combo box. |
void |
setEnvironment(Environment env)
Set the environment variables to display in the drop down list. |
void |
setLabel(String label)
Set the label for this widget. |
void |
setText(String text)
Set the text to display in the editable combo box. |
void |
setValue(Object o)
|
boolean |
supportsCustomEditor()
|
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EnvironmentField()
public EnvironmentField(Environment env)
env - the environment variables to display in
the drop-down box
public EnvironmentField(String label,
Environment env)
label - the label to useenv - the environment variables to display in
the drop-down boxpublic EnvironmentField(String label)
label - the label to use| Method Detail |
|---|
public void setLabel(String label)
label - the label to usepublic void setText(String text)
text - the text to displaypublic String getText()
public void setAsText(String s)
setAsText in interface PropertyEditorpublic String getAsText()
getAsText in interface PropertyEditorpublic void setValue(Object o)
setValue in interface PropertyEditorpublic Object getValue()
getValue in interface PropertyEditorpublic String getJavaInitializationString()
getJavaInitializationString in interface PropertyEditorpublic boolean isPaintable()
isPaintable in interface PropertyEditorpublic String[] getTags()
getTags in interface PropertyEditorpublic boolean supportsCustomEditor()
supportsCustomEditor in interface PropertyEditorpublic Component getCustomEditor()
getCustomEditor in interface PropertyEditorpublic JPanel getCustomPanel()
CustomPanelSupplier
getCustomPanel in interface CustomPanelSupplierpublic void addPropertyChangeListener(PropertyChangeListener pcl)
addPropertyChangeListener in interface PropertyEditoraddPropertyChangeListener in class Containerpublic void removePropertyChangeListener(PropertyChangeListener pcl)
removePropertyChangeListener in interface PropertyEditorremovePropertyChangeListener in class Component
public void paintValue(Graphics gfx,
Rectangle box)
paintValue in interface PropertyEditorpublic void setEnvironment(Environment env)
setEnvironment in interface EnvironmentHandlerenv - the environment variables to displaypublic void setEnabled(boolean enabled)
setEnabled in class JComponentenabled - true if the combo box is enabledpublic void setEditable(boolean editable)
editable - true if the combo box is editablepublic static void main(String[] args)
args - command line args (ignored)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||