|
||||||||||
| 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<WeightedList<?>>
org.opensha.commons.param.editor.impl.WeightedListParameterEditor
public class WeightedListParameterEditor
| 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 |
|---|
| 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, C, D, 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 | |
|---|---|
WeightedListParameterEditor()
|
|
WeightedListParameterEditor(Parameter model)
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
|
protected JComponent |
buildWidget()
This will be called by refreshParamEditor to initially build the widget component. |
void |
componentHidden(ComponentEvent e)
|
void |
componentMoved(ComponentEvent e)
|
void |
componentResized(ComponentEvent e)
|
void |
componentShown(ComponentEvent e)
|
boolean |
isParameterSupported(Parameter<WeightedList<?>> param)
Abstract method that allows subclasses to define if a specific parameter is valid. |
static void |
main(String[] args)
|
void |
setEnabled(boolean isEnabled)
|
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 |
| Constructor Detail |
|---|
public WeightedListParameterEditor()
public WeightedListParameterEditor(Parameter model)
| Method Detail |
|---|
public void setEnabled(boolean isEnabled)
setEnabled in interface ParameterEditor<WeightedList<?>>setEnabled in class AbstractParameterEditor<WeightedList<?>>public static void main(String[] args)
public boolean isParameterSupported(Parameter<WeightedList<?>> param)
AbstractParameterEditorsetParameter is called.
isParameterSupported in class AbstractParameterEditor<WeightedList<?>>protected JComponent buildWidget()
AbstractParameterEditorrefreshParamEditor to initially build the widget component.
buildWidget in class AbstractParameterEditor<WeightedList<?>>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<WeightedList<?>>public void componentResized(ComponentEvent e)
componentResized in interface ComponentListenerpublic void componentMoved(ComponentEvent e)
componentMoved in interface ComponentListenerpublic void componentShown(ComponentEvent e)
componentShown in interface ComponentListenerpublic void componentHidden(ComponentEvent e)
componentHidden in interface ComponentListenerpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||