|
VRJConfig UI API |
||||||||
| 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
org.vrjuggler.vrjconfig.ui.ContextToolbar
public class ContextToolbar
A specialized toolbar for configuration contexts that pays attention to the ConfigManager.
| Nested Class Summary |
|---|
| 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.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected ConfigContext |
context
|
protected JToggleButton |
expandBtn
|
protected JFileChooser |
fileChooser
|
protected JButton |
newBtn
|
protected JButton |
openBtn
|
protected JButton |
redoBtn
|
protected JButton |
saveAsBtn
|
protected JButton |
saveBtn
|
protected JToolBar |
toolbar
|
protected JButton |
undoBtn
|
| 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 org.vrjuggler.vrjconfig.VrjConfigConstants |
|---|
HELP_URL_STR |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ContextToolbar(ConfigContext ctx,
FileLoader fileLoader,
UndoHandler undoHandler)
|
|
ContextToolbar(File curDir,
ConfigContext ctx,
FileLoader fileLoader,
UndoHandler undoHandler)
|
|
| Method Summary | |
|---|---|
void |
addActionListener(ActionListener listener)
|
void |
addNotify()
|
void |
addToToolbar(Component comp)
|
boolean |
doCheckReload()
|
boolean |
doClose()
Programmatically execute a close action. |
boolean |
doNew()
Programmatically does a new action in a new ConfigContext. |
boolean |
doOpen()
Programmatically does an open action into our context. |
void |
doRedo()
Programmatically execte a redo action. |
boolean |
doSave()
Programmatically execute a save action. |
boolean |
doSaveAs()
Pragmatically executs a save as operation. |
void |
doUndo()
Programmatically execute an undo action. |
protected void |
fireAction(String command)
|
protected ConfigBroker |
getBroker()
Gets a handle to the configuration broker service. |
ConfigContext |
getConfigContext()
|
protected Container |
getParentFrame()
|
void |
removeActionListener(ActionListener listener)
|
void |
removeNotify()
|
protected void |
toggleContextEditor()
|
void |
undoableEditHappened(UndoableEditEvent e)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected JToolBar toolbar
protected JButton newBtn
protected JButton openBtn
protected JButton saveBtn
protected JButton saveAsBtn
protected JButton undoBtn
protected JButton redoBtn
protected JToggleButton expandBtn
protected JFileChooser fileChooser
protected ConfigContext context
| Constructor Detail |
|---|
public ContextToolbar(ConfigContext ctx,
FileLoader fileLoader,
UndoHandler undoHandler)
public ContextToolbar(File curDir,
ConfigContext ctx,
FileLoader fileLoader,
UndoHandler undoHandler)
| Method Detail |
|---|
public void addNotify()
addNotify in class JComponentpublic void removeNotify()
removeNotify in class JComponentpublic void undoableEditHappened(UndoableEditEvent e)
undoableEditHappened in interface UndoableEditListenerpublic void addToToolbar(Component comp)
public ConfigContext getConfigContext()
public void addActionListener(ActionListener listener)
public void removeActionListener(ActionListener listener)
protected void fireAction(String command)
public boolean doNew()
public boolean doOpen()
public boolean doSave()
public void doUndo()
public void doRedo()
public boolean doCheckReload()
public boolean doClose()
protected void toggleContextEditor()
protected ConfigBroker getBroker()
public boolean doSaveAs()
protected Container getParentFrame()
|
VRJConfig UI API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||