|
Kernel Prolog with Fluent based Builtins | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Panel
|
+--tarau.jinnigui.GuiEngine
Simple GUI interface to Jinni. To be extended:-)
| Inner classes inherited from class java.awt.Component |
java.awt.Component.AWTTreeLock |
| Field Summary | |
private java.awt.Container |
container
|
(package private) java.lang.Thread |
goalThread
|
(package private) java.awt.TextField |
inputField
|
private static int |
instance_ctr
|
private java.awt.TextArea |
outputArea
|
(package private) java.awt.TextField |
readField
|
(package private) java.lang.Thread |
readThread
|
static int |
textHeight
|
static int |
textWidth
|
| Fields inherited from class java.awt.Panel |
base,
nameCounter,
serialVersionUID |
| Fields inherited from class java.awt.Container |
component,
containerListener,
containerSerializedDataVersion,
dispatcher,
layoutMgr,
maxSize,
ncomponents,
serialVersionUID |
| Fields inherited from class java.awt.Component |
actionListenerK,
adjustmentListenerK,
appContext,
assert,
background,
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
changeSupport,
componentListener,
componentListenerK,
componentOrientation,
componentSerializedDataVersion,
containerListenerK,
cursor,
dropTarget,
enabled,
eventMask,
focusListener,
focusListenerK,
font,
foreground,
hasFocus,
height,
incRate,
inputMethodListener,
inputMethodListenerK,
isInc,
isPacked,
itemListenerK,
keyListener,
keyListenerK,
LEFT_ALIGNMENT,
locale,
LOCK,
minSize,
mouseListener,
mouseListenerK,
mouseMotionListener,
mouseMotionListenerK,
name,
nameExplicitlySet,
newEventsOnly,
ownedWindowK,
parent,
peer,
peerFont,
popups,
prefSize,
RIGHT_ALIGNMENT,
serialVersionUID,
textListenerK,
TOP_ALIGNMENT,
valid,
visible,
width,
windowListenerK,
x,
y |
| Constructor Summary | |
GuiEngine(java.awt.Container container)
Creates the Frame together with its program thread and it's Prolog code represented as a trivial java class. |
|
| Method Summary | |
boolean |
action(java.awt.Event evt,
java.lang.Object arg)
Acts on events from TextFields |
private boolean |
addReader(java.lang.Thread readThread)
Registers a reader thread to operate on readField |
(package private) void |
changeFocus(java.awt.TextField from,
java.awt.TextField to)
Swtiches between '?-' query input and Prolog read(X) operations. |
(package private) void |
clean_up_goal()
|
void |
destroy()
Executes when the applet is destroyed. |
java.lang.String |
firstQuery()
Initializes Jinni input area with this |
java.lang.String |
getInfo()
|
private java.lang.String |
getReadString()
returns a String read from readField |
void |
halt()
|
boolean |
handleEvent(java.awt.Event event)
|
(package private) void |
initPeer()
Notifies class IO that we are an GUI mode. |
private void |
initThis()
Frame specific initialization |
void |
print(java.lang.String s)
Gives the illusion to output routines in class IO that they are printing to a console. |
void |
println(java.lang.String s)
|
java.lang.String |
readln()
Reads a string. |
(package private) void |
resetPeer()
|
void |
run()
Avoids spurious reinitialisation. |
void |
show_document(java.net.URL url,
java.lang.String target)
|
void |
stop()
Executes when the applet is stopped. |
void |
traceln(java.lang.String s)
|
| Methods inherited from class java.awt.Panel |
|
| Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
applyOrientation,
countComponents,
deliverEvent,
dispatchEventImpl,
dispatchEventToSelf,
doLayout,
eventEnabled,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents_NoClientCode,
getComponents,
getCursorTarget,
getInsets,
getLayout,
getMaximumSize,
getMinimumSize,
getMouseEventTarget,
getPreferredSize,
getWindow,
initIDs,
insets,
invalidate,
invalidateTree,
isAncestorOf,
layout,
lightweightPrint,
list,
list,
locate,
minimumSize,
nextFocus,
paint,
paintComponents,
paramString,
postProcessKeyEvent,
postsOldMouseEvents,
preferredSize,
preProcessKeyEvent,
print,
printComponents,
printOneComponent,
processContainerEvent,
processEvent,
proxyEnableEvents,
proxyRequestFocus,
readObject,
remove,
remove,
removeAll,
removeContainerListener,
removeNotify,
setCursor,
setFocusOwner,
setFont,
setLayout,
transferFocus,
update,
updateCursor,
validate,
validateTree,
writeObject |
| Methods inherited from class java.awt.Component |
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
areInputMethodsEnabled,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
firePropertyChange,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont_NoClientCode,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputContext,
getInputMethodRequests,
getIntrinsicCursor,
getLocale,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getNativeContainer,
getParent_NoClientCode,
getParent,
getPeer,
getSize,
getSize,
getToolkit,
getToolkitImpl,
getTreeLock,
getWidth,
getWindowForObject,
getX,
getY,
gotFocus,
hasFocus,
hide,
imageUpdate,
inside,
isDisplayable,
isDoubleBuffered,
isEnabled,
isEnabledImpl,
isFocusTraversable,
isLightweight,
isOpaque,
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,
processInputMethodEvent,
processKeyEvent,
processMouseEvent,
processMouseMotionEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
resize,
resize,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setDropTarget,
setEnabled,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
show,
size,
toString,
transferFocus |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
| Field Detail |
private java.awt.Container container
java.awt.TextField inputField
java.awt.TextField readField
private java.awt.TextArea outputArea
public static int textHeight
public static int textWidth
private static int instance_ctr
java.lang.Thread goalThread
java.lang.Thread readThread
| Constructor Detail |
public GuiEngine(java.awt.Container container)
| Method Detail |
public void print(java.lang.String s)
IOpublic void println(java.lang.String s)
public void traceln(java.lang.String s)
public void show_document(java.net.URL url,
java.lang.String target)
public java.lang.String firstQuery()
private void initThis()
void initPeer()
void resetPeer()
public void run()
public void stop()
public void destroy()
public void halt()
void clean_up_goal()
void changeFocus(java.awt.TextField from,
java.awt.TextField to)
private boolean addReader(java.lang.Thread readThread)
private java.lang.String getReadString()
public java.lang.String readln()
public boolean action(java.awt.Event evt,
java.lang.Object arg)
public boolean handleEvent(java.awt.Event event)
public java.lang.String getInfo()
|
Kernel Prolog with Fluent based Builtins | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||