|
|||||||||
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 | +--javax.swing.JComponent | +--javax.swing.JPanel | +--infosapient.ui.InfoSapientRuleEditor
Inner Class Summary | |
protected class |
InfoSapientRuleEditor.ActionChangedListener
|
(package private) class |
InfoSapientRuleEditor.AddAction
|
(package private) class |
InfoSapientRuleEditor.CreateAction
|
(package private) class |
InfoSapientRuleEditor.DeleteAction
|
(package private) class |
InfoSapientRuleEditor.EditAction
|
(package private) class |
InfoSapientRuleEditor.ExitAction
|
(package private) class |
InfoSapientRuleEditor.RedoAction
|
(package private) class |
InfoSapientRuleEditor.RuleDocListener
|
(package private) class |
InfoSapientRuleEditor.RuleEditorCloser
|
(package private) class |
InfoSapientRuleEditor.RuleEditorObservable
|
(package private) class |
InfoSapientRuleEditor.StatusBar
FIXME - I'm not very useful yet |
(package private) class |
InfoSapientRuleEditor.UndoAction
|
Inner classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent,
javax.swing.JComponent.IntVector,
javax.swing.JComponent.KeyboardBinding,
javax.swing.JComponent.KeyboardState |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AWTTreeLock |
Field Summary | |
protected javax.swing.Action[] |
actionsList
|
static java.lang.String |
actionSuffix
Suffix applied to the key used in resource file lookups for an action. |
protected InfoSapientRuleEditor.AddAction |
addAction
|
static java.lang.String |
AddAction
|
protected java.util.Hashtable |
commands
|
protected InfoSapientController |
controller
|
protected InfoSapientRuleEditor.CreateAction |
createAction
|
static java.lang.String |
CreateAction
|
protected InfoSapientRuleEditor.DeleteAction |
deleteAction
|
static java.lang.String |
DeleteAction
|
static java.lang.String |
EditAction
|
protected javax.swing.JPopupMenu |
editMenu
|
protected javax.swing.text.JTextComponent |
editor
|
protected InfoSapientRuleEditor.ExitAction |
exitAction
|
static java.lang.String |
ExitAction
|
protected java.awt.FileDialog |
fileDialog
|
(package private) static boolean |
FOUND_PROPERTIES
|
protected javax.swing.JFrame |
frame
|
static java.lang.String |
imageSuffix
Suffix applied to the key used in resource file lookups for an image. |
static java.lang.String |
labelSuffix
Suffix applied to the key used in resource file lookups for a label. |
protected javax.swing.JMenuBar |
menubar
|
protected java.util.Hashtable |
menuItems
|
static java.lang.String |
NEW_RULE
Rule template string |
protected javax.swing.JPopupMenu |
pMenu
|
protected InfoSapientRuleEditor.RedoAction |
redoAction
|
protected InfoSapientRuleEditor.RuleEditorObservable |
reo
|
protected static java.util.ResourceBundle |
resources
|
protected CompileSPRule |
ruleCompiler
|
protected javax.swing.JPopupMenu |
ruleMenu
|
protected javax.swing.JComponent |
status
|
protected FzyKnowledgebase |
theKB
|
protected FzyRule |
theRule
|
static java.lang.String |
tipSuffix
Suffix applied to the key used in resource file lookups for tooltip text. |
protected javax.swing.JToolBar |
toolbar
|
protected InfoSapientRuleEditor.UndoAction |
undoAction
Actions defined by InfoSapientRuleEditor |
protected javax.swing.undo.UndoManager |
undoMgr
UndoManager that we add edits to. |
Fields inherited from class javax.swing.JPanel |
defaultLayout,
uiClassID |
Fields inherited from class javax.swing.JComponent |
_bounds,
accessibleContext,
alignmentX,
alignmentY,
ANCESTOR_USING_BUFFER,
ancestorNotifier,
autoscroller,
border,
changeSupport,
clientProperties,
flags,
HAS_FOCUS,
IS_DOUBLE_BUFFERED,
IS_OPAQUE,
IS_PAINTING_TILE,
KEYBOARD_BINDINGS_KEY,
listenerList,
maximumSize,
minimumSize,
NEXT_FOCUS,
paintImmediatelyClip,
paintingChild,
preferredSize,
readObjectCallbacks,
REQUEST_FOCUS_DISABLED,
tmpRect,
TOOL_TIP_TEXT_KEY,
ui,
uiClassID,
UNDEFINED_CONDITION,
vetoableChangeSupport,
WHEN_ANCESTOR_OF_FOCUSED_COMPONENT,
WHEN_FOCUSED,
WHEN_IN_FOCUSED_WINDOW |
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 | |
InfoSapientRuleEditor(InfoSapientController theControl)
|
|
InfoSapientRuleEditor(InfoSapientController theControl,
FzyRule aRule)
|
Method Summary | |
(package private) static void |
|
protected java.beans.PropertyChangeListener |
createActionChangeListener(javax.swing.JMenuItem b)
|
protected javax.swing.text.JTextComponent |
createEditor()
Create an editor to represent the given document. |
protected javax.swing.JMenu |
createMenu(java.lang.String key)
Create a menu for the app. |
protected javax.swing.JMenuBar |
createMenubar()
Create the menubar for the app. |
protected javax.swing.JMenuItem |
createMenuItem(java.lang.String cmd)
This is the hook through which all menu items are created. |
protected java.awt.Component |
createStatusbar()
Create a status bar |
protected java.awt.Component |
createTool(java.lang.String key)
Hook through which every toolbar item is created. |
protected java.awt.Component |
createToolbar()
Create the toolbar. |
protected javax.swing.JButton |
createToolbarButton(java.lang.String key)
Create a button to go inside of the toolbar. |
protected javax.swing.Action |
getAction(java.lang.String cmd)
|
javax.swing.Action[] |
getActions()
Fetch the list of actions supported by this editor. |
protected InfoSapientController |
getController()
|
protected javax.swing.text.JTextComponent |
getEditor()
Fetch the editor contained in this panel |
protected java.awt.Frame |
getFrame()
Find the hosting frame, for the file-chooser dialog. |
protected javax.swing.JMenuBar |
getMenubar()
|
protected javax.swing.JMenuItem |
getMenuItem(java.lang.String cmd)
Fetch the menu item that was created for the given command. |
protected java.net.URL |
getResource(java.lang.String key)
|
protected java.lang.String |
getResourceString(java.lang.String nm)
|
FzyRule |
getRule()
|
protected java.awt.Container |
getToolbar()
|
void |
handleFSEvent(FSEvent anEvent)
|
protected void |
initialize()
|
void |
setRule(FzyRule aRule)
|
void |
setRuleText(java.lang.String rText)
|
void |
setVisible(boolean f)
|
protected java.lang.String[] |
tokenize(java.lang.String input)
Take the given string and chop it up into a series of strings on whitespace boundries. |
void |
undoableEditHappened(javax.swing.event.UndoableEditEvent e)
Messaged when the Document has created an edit, the edit is added to undo , an instance of UndoManager. |
void |
update(Observable observ,
java.lang.Object obj)
|
Methods inherited from class javax.swing.JPanel |
getAccessibleContext,
getUIClassID,
paramString,
updateUI,
writeObject |
Methods inherited from class javax.swing.JComponent |
_paintImmediately,
addAncestorListener,
addNotify,
addPropertyChangeListener,
addPropertyChangeListener,
addVetoableChangeListener,
adjustPaintFlags,
alwaysOnTop,
bindingForKeyStroke,
checkIfChildObscuredBySibling,
computeVisibleRect,
computeVisibleRect,
contains,
createToolTip,
enableSerialization,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
fireVetoableChange,
getActionForKeyStroke,
getAlignmentX,
getAlignmentY,
getAutoscrolls,
getBorder,
getBounds,
getClientProperties,
getClientProperty,
getComponentGraphics,
getConditionForKeyStroke,
getDebugGraphicsOptions,
getFlag,
getGraphics,
getHeight,
getInsets,
getInsets,
getLocation,
getMaximumSize,
getMinimumSize,
getNextFocusableComponent,
getPreferredSize,
getRegisteredKeyStrokes,
getRootPane,
getSize,
getToolTipLocation,
getToolTipText,
getToolTipText,
getTopLevelAncestor,
getVisibleRect,
getWidth,
getX,
getY,
grabFocus,
hasFocus,
isDoubleBuffered,
isFocusCycleRoot,
isFocusTraversable,
isLightweightComponent,
isManagingFocus,
isOpaque,
isOptimizedDrawingEnabled,
isPaintingTile,
isRequestFocusEnabled,
isValidateRoot,
keyboardBindings,
paint,
paintBorder,
paintChildren,
paintComponent,
paintImmediately,
paintImmediately,
paintWithBuffer,
processComponentKeyEvent,
processFocusEvent,
processKeyBinding,
processKeyBindings,
processKeyBindingsForAllComponents,
processKeyEvent,
processMouseMotionEvent,
putClientProperty,
readObject,
rectangleIsObscured,
rectangleIsObscuredBySibling,
registerKeyboardAction,
registerKeyboardAction,
registerWithKeyboardManager,
removeAncestorListener,
removeNotify,
removePropertyChangeListener,
removePropertyChangeListener,
removeVetoableChangeListener,
repaint,
repaint,
requestDefaultFocus,
requestFocus,
resetKeyboardActions,
reshape,
revalidate,
scrollRectToVisible,
setAlignmentX,
setAlignmentY,
setAutoscrolls,
setBackground,
setBorder,
setDebugGraphicsOptions,
setDoubleBuffered,
setEnabled,
setFlag,
setFont,
setForeground,
setMaximumSize,
setMinimumSize,
setNextFocusableComponent,
setOpaque,
setPaintingChild,
setPreferredSize,
setRequestFocusEnabled,
setToolTipText,
setUI,
shouldDebugGraphics,
superProcessMouseMotionEvent,
unregisterKeyboardAction,
unregisterWithKeyboardManager,
update |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
applyOrientation,
countComponents,
deliverEvent,
dispatchEventImpl,
dispatchEventToSelf,
doLayout,
eventEnabled,
findComponentAt,
findComponentAt,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents_NoClientCode,
getComponents,
getCursorTarget,
getLayout,
getMouseEventTarget,
getWindow,
initIDs,
insets,
invalidate,
invalidateTree,
isAncestorOf,
layout,
lightweightPrint,
list,
list,
locate,
minimumSize,
nextFocus,
paintComponents,
postProcessKeyEvent,
postsOldMouseEvents,
preferredSize,
preProcessKeyEvent,
print,
printComponents,
printOneComponent,
processContainerEvent,
processEvent,
proxyEnableEvents,
proxyRequestFocus,
remove,
remove,
removeAll,
removeContainerListener,
setCursor,
setFocusOwner,
setLayout,
transferFocus,
updateCursor,
validate,
validateTree |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
areInputMethodsEnabled,
bounds,
checkImage,
checkImage,
coalesceEvents,
constructComponentName,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
getBackground,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont_NoClientCode,
getFont,
getFontMetrics,
getForeground,
getInputContext,
getInputMethodRequests,
getIntrinsicCursor,
getLocale,
getLocation,
getLocationOnScreen,
getName,
getNativeContainer,
getParent_NoClientCode,
getParent,
getPeer,
getSize,
getToolkit,
getToolkitImpl,
getTreeLock,
getWindowForObject,
gotFocus,
handleEvent,
hide,
imageUpdate,
inside,
isDisplayable,
isEnabled,
isEnabledImpl,
isLightweight,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
list,
list,
list,
location,
lostFocus,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
postEvent,
prepareImage,
prepareImage,
printAll,
processComponentEvent,
processInputMethodEvent,
processMouseEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
repaint,
repaint,
repaint,
resize,
resize,
setBounds,
setBounds,
setComponentOrientation,
setDropTarget,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
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 |
protected static java.util.ResourceBundle resources
static boolean FOUND_PROPERTIES
protected InfoSapientRuleEditor.RuleEditorObservable reo
protected FzyKnowledgebase theKB
protected FzyRule theRule
protected CompileSPRule ruleCompiler
protected InfoSapientController controller
protected javax.swing.JFrame frame
protected javax.swing.text.JTextComponent editor
protected javax.swing.JPopupMenu pMenu
protected javax.swing.JPopupMenu editMenu
protected javax.swing.JPopupMenu ruleMenu
public static final java.lang.String imageSuffix
public static final java.lang.String labelSuffix
public static final java.lang.String actionSuffix
public static final java.lang.String tipSuffix
public static final java.lang.String EditAction
public static final java.lang.String CreateAction
public static final java.lang.String DeleteAction
public static final java.lang.String AddAction
public static final java.lang.String ExitAction
public static final java.lang.String NEW_RULE
protected java.util.Hashtable commands
protected java.util.Hashtable menuItems
protected javax.swing.JMenuBar menubar
protected javax.swing.JToolBar toolbar
protected javax.swing.JComponent status
protected java.awt.FileDialog fileDialog
protected javax.swing.undo.UndoManager undoMgr
protected InfoSapientRuleEditor.UndoAction undoAction
protected InfoSapientRuleEditor.RedoAction redoAction
protected InfoSapientRuleEditor.CreateAction createAction
protected InfoSapientRuleEditor.AddAction addAction
protected InfoSapientRuleEditor.DeleteAction deleteAction
protected InfoSapientRuleEditor.ExitAction exitAction
protected javax.swing.Action[] actionsList
Constructor Detail |
public InfoSapientRuleEditor(InfoSapientController theControl)
public InfoSapientRuleEditor(InfoSapientController theControl, FzyRule aRule)
Method Detail |
static void()
protected java.beans.PropertyChangeListener createActionChangeListener(javax.swing.JMenuItem b)
protected javax.swing.text.JTextComponent createEditor()
protected javax.swing.JMenu createMenu(java.lang.String key)
protected javax.swing.JMenuBar createMenubar()
protected javax.swing.JMenuItem createMenuItem(java.lang.String cmd)
String
- -- the menu item name being createdgetMenuItem(java.lang.String)
protected java.awt.Component createStatusbar()
protected java.awt.Component createTool(java.lang.String key)
protected java.awt.Component createToolbar()
protected javax.swing.JButton createToolbarButton(java.lang.String key)
key
- The key in the resource file to serve as the basis
of lookups.protected javax.swing.Action getAction(java.lang.String cmd)
public javax.swing.Action[] getActions()
protected InfoSapientController getController()
protected javax.swing.text.JTextComponent getEditor()
protected java.awt.Frame getFrame()
protected javax.swing.JMenuBar getMenubar()
protected javax.swing.JMenuItem getMenuItem(java.lang.String cmd)
cmd
- Name of the action.protected java.net.URL getResource(java.lang.String key)
protected java.lang.String getResourceString(java.lang.String nm)
public FzyRule getRule()
protected java.awt.Container getToolbar()
public void handleFSEvent(FSEvent anEvent)
protected void initialize()
public void setRule(FzyRule aRule)
public void setRuleText(java.lang.String rText)
public void setVisible(boolean f)
protected java.lang.String[] tokenize(java.lang.String input)
public void undoableEditHappened(javax.swing.event.UndoableEditEvent e)
undo
, an instance of UndoManager.public void update(Observable observ, java.lang.Object obj)
|
License to use this program is provided under the TERMS OF THE COMMON PUBLIC LICENSE 0.5. ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |