public class ThinletToolBar extends Thinlet
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
ThinletToolBar(alice.tuprologx.ide.IDE ide) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener) |
protected void |
enableTheoryCommands(boolean flag)
Enable or disable theory-related buttons.
|
Thinlet |
getDebugArea()
Get the debug area used by the toolbar.
|
Prolog |
getEngine()
Get the Prolog engine referenced by the toolbar.
|
alice.tuprologx.ide.IOFileOperations |
getFileManager()
Get the file manager used by the toolbar.
|
alice.tuprologx.ide.FrameLauncher |
getFrameLauncher()
Get the frame launcher used by the toolbar.
|
String |
getStatusMessage()
Get the toolbar status as a
java.lang.String message. |
void |
loadTheory()
Load the engine with a theory previously stored in a file.
|
void |
newTheory()
Reset the engine's theory to a new blank theory.
|
void |
openLibraryManager()
Opens the Library Manager dialog.
|
void |
removePropertyChangeListener(PropertyChangeListener listener) |
void |
saveTheory()
Save the engine's current theory to a default file.
|
void |
saveTheoryAs()
Save the engine's current theory to a file chosen by the user.
|
void |
setDebugArea(Thinlet debugArea)
Set the debug area referenced by the toolbar for use in displaying debug
informations.
|
void |
setEngine(Prolog engine)
Set the Prolog engine referenced by the toolbar.
|
void |
setFileManager(alice.tuprologx.ide.IOFileOperations fileManager)
Set the file manager referenced by the toolbar for use in Input/Output tasks.
|
void |
setFrameLauncher(alice.tuprologx.ide.FrameLauncher frameLauncher)
Set the frame launcher referenced by the toolbar for use in displaying
dialogs and new windows.
|
void |
setLibraryDialog(LibraryDialog libraryDialog)
Set the library dialog referenced by the toolbar for use in displaying library
management facilities.
|
void |
setStatusMessage(String message)
Set the toolbar status.
|
void |
viewAboutInformation()
Display an About dialog with information on the system and its crafters.
|
void |
viewDebugInformation()
Show an instance of the debug area referenced by the toolbar in order to
display debug informations.
|
add, add, add, characters, create, destroy, endElement, find, find, getBoolean, getChoice, getClass, getCount, getCount, getDesktop, getDOMAttribute, getDOMCount, getDOMNode, getDOMText, getIcon, getIcon, getIcon, getInteger, getItem, getItem, getItems, getItems, getParent, getPreferredSize, getProperty, getSelectedIndex, getSelectedItem, getSelectedItems, getString, isFocusTraversable, paint, parse, parse, parse, parse, parseDOM, parseXML, processEvent, putProperty, remove, removeAll, removeAll, requestFocus, run, setBoolean, setChoice, setColors, setFont, setIcon, setInteger, setMethod, setString, startElement, update
add, add, add, add, add, addContainerListener, addImpl, addNotify, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, isValidateRoot, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public Prolog getEngine()
public void setEngine(Prolog engine)
engine
- an alice.tuprolog.Prolog
engine.public void setStatusMessage(String message)
message
- The message describing the new status of the toolbar.public String getStatusMessage()
java.lang.String
message.java.lang.String
message.public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
in class Container
public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
in class Component
public void setFileManager(alice.tuprologx.ide.IOFileOperations fileManager)
fileManager
- The file manager we want the toolbar to use.public alice.tuprologx.ide.IOFileOperations getFileManager()
public void setFrameLauncher(alice.tuprologx.ide.FrameLauncher frameLauncher)
frameLauncher
- The frame launcher we want the toolbar to use.public alice.tuprologx.ide.FrameLauncher getFrameLauncher()
protected void enableTheoryCommands(boolean flag)
flag
- true if the buttons have to be enabled, false otherwise.public void newTheory()
public void loadTheory()
public void saveTheory()
public void saveTheoryAs()
public void openLibraryManager()
public void viewDebugInformation()
public void viewAboutInformation()
public void setDebugArea(Thinlet debugArea)
debugArea
- The debug area we want the toolbar to display.public Thinlet getDebugArea()
public void setLibraryDialog(LibraryDialog libraryDialog)
libraryDialog
- The library manager dialog we want the toolbar to display.Copyright © 2015. All rights reserved.