|
|||||||||
| 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
com.samskivert.swing.CollapsiblePanel
com.threerings.editor.swing.BasePropertyEditor
com.threerings.editor.swing.PropertyEditor
com.threerings.editor.swing.editors.ConfigReferenceEditor
public class ConfigReferenceEditor
An editor for configuration references.
| 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 JPanel |
_arguments
Holds the argument panels. |
protected ConfigChooser |
_chooser
The config chooser. |
protected JButton |
_clear
The edit, and clear buttons. |
protected JButton |
_config
The config button. |
protected JButton |
_edit
The edit, and clear buttons. |
protected ParameterizedConfig |
_listenee
The config that we're listening to, if any. |
| Fields inherited from class com.threerings.editor.swing.PropertyEditor |
|---|
_classesByName, _classesByType, _ctx, _lineage, _object, _property |
| Fields inherited from class com.threerings.editor.swing.BasePropertyEditor |
|---|
_collapseIcon, _expandIcon, _highlight, _highlighted, _highlightIcon, _msgmgr, _msgs, BASE_BACKGROUND, DEFAULT_BACKGROUND, PANEL_BUTTON_SIZE, SHADE_DECREMENT |
| Fields inherited from class com.samskivert.swing.CollapsiblePanel |
|---|
_content, _downIcon, _trigger, _upIcon |
| 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 | |
|---|---|
ConfigReferenceEditor()
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent event)
|
void |
addNotify()
|
void |
configUpdated(ConfigEvent<ManagedConfig> event)
Called when a configuration has been updated. |
protected void |
didInit()
Override to perform custom initialization. |
protected String |
getMousePath(Point pt)
Returns the path of the property under the mouse cursor relative to this property. |
void |
removeNotify()
|
void |
stateChanged(ChangeEvent event)
|
void |
update()
Updates the state of the editor from the object. |
protected void |
update(ConfigReference value,
boolean transfer)
Updates the state of the interface based on the current value. |
| Methods inherited from class com.threerings.editor.swing.PropertyEditor |
|---|
createEditor, getDefaultInstance, getMaximum, getMaxSize, getMinimum, getMinSize, getMode, getObject, getProperty, getPropertyColor, getPropertyLabel, getScale, getStep, getUnits, init, isTableCellType, registerEditorClass, registerEditorClass, setObject |
| Methods inherited from class com.threerings.editor.swing.BasePropertyEditor |
|---|
addChangeListener, copyPropertyPath, createButton, darkenColor, fireStateChanged, getBackgroundColor, getColor, getColor, getColor, getDarkerBackground, getLabel, getLabel, getLabel, getLabel, getLabels, getLabels, getLabels, getMousePath, getPropertyColor, loadIcon, makeCollapsible, removeChangeListener, updateBorder |
| Methods inherited from class com.samskivert.swing.CollapsiblePanel |
|---|
getContent, isCollapsed, setCollapsed, setGap, setTrigger, setTriggerContainer, setTriggerContainer, setTriggerContainer |
| 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 |
| Field Detail |
|---|
protected JButton _config
protected JButton _edit
protected JButton _clear
protected JPanel _arguments
protected ConfigChooser _chooser
protected ParameterizedConfig _listenee
| Constructor Detail |
|---|
public ConfigReferenceEditor()
| Method Detail |
|---|
public void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListeneractionPerformed in class BasePropertyEditorpublic void stateChanged(ChangeEvent event)
stateChanged in interface ChangeListenerpublic void configUpdated(ConfigEvent<ManagedConfig> event)
ConfigUpdateListener
configUpdated in interface ConfigUpdateListener<ManagedConfig>public void addNotify()
addNotify in class JComponentpublic void removeNotify()
removeNotify in class JComponentpublic void update()
PropertyEditor
update in class PropertyEditorprotected void didInit()
PropertyEditor
didInit in class PropertyEditorprotected String getMousePath(Point pt)
BasePropertyEditor
getMousePath in class BasePropertyEditorpt - the location of the mouse cursor.
protected void update(ConfigReference value,
boolean transfer)
transfer - if true, attempt to transfer values from the existing set of editors into
the current arguments.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||