|
||||||||||
| 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
org.opensha.commons.gui.LabeledBorderPanel
org.opensha.commons.param.editor.AbstractParameterEditor<ParameterList>
org.opensha.commons.param.editor.impl.ParameterListParameterEditor
public class ParameterListParameterEditor
Title: ParameterListParameterEditor
Description: This class is more like a parameterList consisting of any number of parameters. This parameterList considered as a single Parameter. This parameter editor will show up as the button on th GUI interface and when the user punches the button, all the parameters will pop up in a seperate window showing all the parameters contained within this parameter.
| 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.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected static String |
C
Class name for debugging. |
protected static boolean |
D
If true print out debug statements. |
protected ParameterListEditor |
editor
|
protected JDialog |
frame
|
protected boolean |
parameterChangeFlag
|
| Fields inherited from class org.opensha.commons.param.editor.AbstractParameterEditor |
|---|
CONST_BORDER, DEFAULT_FONT, ETCHED, FOCUS_BORDER, LABEL_DIM, LABEL_PANEL_DIM, WIGET_PANEL_DIM |
| Fields inherited from class org.opensha.commons.gui.LabeledBorderPanel |
|---|
addDefault, borderColor, editorPanel, GBL, jScrollPane1, mainPanel, PARAMETER_LABEL_FONT, PARAMTER_FORE_COLOR, title |
| 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 | |
|---|---|
ParameterListParameterEditor(Parameter<ParameterList> model)
|
|
ParameterListParameterEditor(Parameter<ParameterList> model,
boolean useButton)
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
This function is called when the user click for the ParameterListParameterEditor Button |
protected JComponent |
buildWidget()
This will be called by refreshParamEditor to initially build the widget component. |
protected void |
button_actionPerformed(ActionEvent e)
This function is called when user punches the button to update the ParameterList Parameter |
boolean |
isParameterSupported(Parameter<ParameterList> param)
Abstract method that allows subclasses to define if a specific parameter is valid. |
void |
parameterChange(ParameterChangeEvent event)
Keeps track when parameter has been changed |
void |
setEnabled(boolean isEnabled)
It enables/disables the editor according to whether user is allowed to fill in the values. |
void |
setParameterVisible(String parameterName,
boolean visible)
Hides or shows one of the ParameterEditors in the ParameterList. |
protected JComponent |
updateWidget()
This is called by refreshParamEditor when the parameters value is changed externally
and the widget needs to be updated to reflect the new value. |
| Methods inherited from class org.opensha.commons.param.editor.AbstractParameterEditor |
|---|
getComponent, getLabelToolTipText, getParameter, getValue, getWidget, getWidgetToolTipText, isFocusEnabled, makeSingleConstraintValueLabel, refreshParamEditor, removeWidget, setEditorBorder, setFocusEnabled, setParameter, setValue, unableToSetValue, updateTitle |
| Methods inherited from class org.opensha.commons.gui.LabeledBorderPanel |
|---|
add, add, add, add, add, getBorderColor, getTitle, initParameterLookAndFeel, jbInit, remove, remove, removeAll, setBorderColor, setLayout, setTitle, setTitleFont, setTitleJustification, setTitlePosition |
| 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 |
| Methods inherited from interface org.opensha.commons.param.editor.ParameterEditor |
|---|
isVisible, setVisible |
| Field Detail |
|---|
protected static final String C
protected static final boolean D
protected ParameterListEditor editor
protected JDialog frame
protected boolean parameterChangeFlag
| Constructor Detail |
|---|
public ParameterListParameterEditor(Parameter<ParameterList> model)
public ParameterListParameterEditor(Parameter<ParameterList> model,
boolean useButton)
| Method Detail |
|---|
public void setEnabled(boolean isEnabled)
setEnabled in interface ParameterEditor<ParameterList>setEnabled in class AbstractParameterEditor<ParameterList>
public void setParameterVisible(String parameterName,
boolean visible)
parameterName - The parameter editor to toggle on or off.visible - The boolean flag. If true editor is visible.public void parameterChange(ParameterChangeEvent event)
parameterChange in interface ParameterChangeListenerevent - public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerae - protected void button_actionPerformed(ActionEvent e)
e - public boolean isParameterSupported(Parameter<ParameterList> param)
AbstractParameterEditorsetParameter is called.
isParameterSupported in class AbstractParameterEditor<ParameterList>protected JComponent buildWidget()
AbstractParameterEditorrefreshParamEditor to initially build the widget component.
buildWidget in class AbstractParameterEditor<ParameterList>protected JComponent updateWidget()
AbstractParameterEditorrefreshParamEditor when the parameters value is changed externally
and the widget needs to be updated to reflect the new value. If the widget can be simply updated
to display/edit the new value, it should do so.
buildWidget), or return the new
component.
updateWidget in class AbstractParameterEditor<ParameterList>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||