|
||||||||||
| 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<Boolean>
org.opensha.commons.param.editor.impl.BooleanParameterEditor
public class BooleanParameterEditor
Title: BooleanParameterEditor
Description:
| 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. |
| 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 | |
|---|---|
BooleanParameterEditor(Parameter<Boolean> model)
|
|
| Method Summary | |
|---|---|
protected JComponent |
buildWidget()
This will be called by refreshParamEditor to initially build the widget component. |
boolean |
isParameterSupported(Parameter<Boolean> param)
Abstract method that allows subclasses to define if a specific parameter is valid. |
void |
itemStateChanged(ItemEvent ae)
This function is called when the user click for the BooleanParameterEditor Button |
void |
setEnabled(boolean enabled)
|
protected void |
updateTitle()
|
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 |
| 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
| Constructor Detail |
|---|
public BooleanParameterEditor(Parameter<Boolean> model)
| Method Detail |
|---|
public void itemStateChanged(ItemEvent ae)
itemStateChanged in interface ItemListenerae - public boolean isParameterSupported(Parameter<Boolean> param)
AbstractParameterEditorsetParameter is called.
isParameterSupported in class AbstractParameterEditor<Boolean>public void setEnabled(boolean enabled)
setEnabled in interface ParameterEditor<Boolean>setEnabled in class AbstractParameterEditor<Boolean>protected JComponent buildWidget()
AbstractParameterEditorrefreshParamEditor to initially build the widget component.
buildWidget in class AbstractParameterEditor<Boolean>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<Boolean>protected void updateTitle()
updateTitle in class AbstractParameterEditor<Boolean>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||