|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
com.threerings.config.tools.BaseConfigEditor
public abstract class BaseConfigEditor
The superclass of ConfigEditor and ResourceEditor.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| 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 ConfigManager |
_cfgmgr
The config manager. |
protected ColorPository |
_colorpos
The color pository. |
protected ToolUtil.EditablePrefs |
_eprefs
The editable preferences object. |
protected FindDialog |
_fdialog
The find dialog. |
protected Action |
_find
The find menu actions. |
protected Action |
_findNext
The find menu actions. |
protected MessageManager |
_msgmgr
The message manager. |
protected MessageBundle |
_msgs
The config message bundle. |
protected JDialog |
_pdialog
The preferences dialog. |
protected static Preferences |
_prefs
The package preferences. |
protected ResourceManager |
_rsrcmgr
The resource manager. |
| Fields inherited from class javax.swing.JFrame |
|---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
|---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
BaseConfigEditor(MessageManager msgmgr,
ConfigManager cfgmgr,
ColorPository colorpos,
String msgs)
Creates a new config editor. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent event)
|
protected void |
addFindMenu(JMenu menu)
Adds the find functionality to a menu. |
void |
addNotify()
|
protected Action |
createAction(String command,
int mnemonic,
int accelerator)
Creates an action with the specified command, mnemonic, and (optional) accelerator. |
protected Action |
createAction(String command,
int mnemonic,
int accelerator,
int modifiers)
Creates an action with the specified command, mnemonic, and (optional) accelerator key/modifiers. |
protected JButton |
createButton(String action)
Creates a button with the specified action. |
protected JButton |
createButton(String action,
String key)
Creates a button with the specified action and translation key. |
static BaseConfigEditor |
createEditor(EditorContext ctx,
Class<?> clazz,
String name)
Utility method to create an editor for the identified config. |
protected JMenu |
createMenu(String name,
int mnemonic)
Creates a menu with the specified name and mnemonic. |
protected JMenuItem |
createMenuItem(String action,
int mnemonic,
int accelerator)
Creates a menu item with the specified action, mnemonic, and (optional) accelerator. |
protected JMenuItem |
createMenuItem(String action,
int mnemonic,
int accelerator,
int modifiers)
Creates a menu item with the specified action, mnemonic, and (optional) accelerator key/modifiers. |
ColorPository |
getColorPository()
Returns a reference to the color pository. |
ConfigManager |
getConfigManager()
Returns a reference to the configuration manager. |
protected EditorPanel |
getFindEditorPanel()
Returns the editor panel we'll be finding on. |
protected String |
getLabel(Class<?> clazz,
String type)
Returns the label for the specified class. |
protected String |
getLabel(String name)
Returns a translated label for the supplied one, if one exists; otherwise, simply returns the untranslated name. |
MessageManager |
getMessageManager()
Returns a reference to the message manager. |
ResourceManager |
getResourceManager()
Returns a reference to the resource manager. |
void |
removeNotify()
|
protected void |
showFrame(JFrame frame)
Shows a frame slightly offset from this one. |
| Methods inherited from class java.awt.Frame |
|---|
getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Field Detail |
|---|
protected ResourceManager _rsrcmgr
protected MessageManager _msgmgr
protected ConfigManager _cfgmgr
protected ColorPository _colorpos
protected MessageBundle _msgs
protected ToolUtil.EditablePrefs _eprefs
protected JDialog _pdialog
protected FindDialog _fdialog
protected Action _find
protected Action _findNext
protected static Preferences _prefs
| Constructor Detail |
|---|
public BaseConfigEditor(MessageManager msgmgr,
ConfigManager cfgmgr,
ColorPository colorpos,
String msgs)
| Method Detail |
|---|
public static BaseConfigEditor createEditor(EditorContext ctx,
Class<?> clazz,
String name)
public ResourceManager getResourceManager()
EditorContext
getResourceManager in interface EditorContextpublic MessageManager getMessageManager()
EditorContext
getMessageManager in interface EditorContextpublic ConfigManager getConfigManager()
EditorContext
getConfigManager in interface EditorContextpublic ColorPository getColorPository()
EditorContext
getColorPository in interface EditorContextpublic void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListenerpublic void addNotify()
addNotify in class Framepublic void removeNotify()
removeNotify in class Frame
protected JMenu createMenu(String name,
int mnemonic)
protected JMenuItem createMenuItem(String action,
int mnemonic,
int accelerator)
protected JMenuItem createMenuItem(String action,
int mnemonic,
int accelerator,
int modifiers)
protected Action createAction(String command,
int mnemonic,
int accelerator)
protected Action createAction(String command,
int mnemonic,
int accelerator,
int modifiers)
protected JButton createButton(String action)
protected JButton createButton(String action,
String key)
protected String getLabel(String name)
protected String getLabel(Class<?> clazz,
String type)
protected void showFrame(JFrame frame)
protected void addFindMenu(JMenu menu)
protected EditorPanel getFindEditorPanel()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||