|
ABLE, Version 1.1b | |||||||||
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 | +--com.ibm.able.beans.rules.AbleRuleSetEditor
This class contains the Able Ruleset Editor panel.
This object can be run from the command line, in which case the main() method will create an new, empty AbleRuleSet that can be saved as a serialized bean. When called as a regular bean customizer, the setObject() method must be called specifying the AbleRuleSet object that is to be customized. Being a "customizer", this object implements the "Customizer" interface, but note that no property change events are fired from this object. However, the AbleRuleSet object being customized may itself fire such events.
Inner Class Summary | |
class |
AbleRuleSetEditor.XAppCloser
To shutdown when run as an application. |
Inner classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Field Summary | |
protected java.io.File |
myCurrentDir
|
protected javax.swing.JFileChooser |
myFileDialog
|
protected int |
myFileOption
|
protected javax.swing.event.UndoableEditListener |
myUndoHandler
Listener for the edits on the current document. |
protected javax.swing.undo.UndoManager |
myUndoManager
UndoManager to which we add edits. |
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 |
Constructor Summary | |
AbleRuleSetEditor()
|
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener theListener)
Add a property change listener to this object. |
protected void |
debugTrace(java.lang.String theMessage)
Log a trace message. |
protected void |
exitCustomizer()
Gracefully exit the customizer. |
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, and for setting the title. |
protected java.awt.Window |
getWindow_()
This method is used by those routines that display dialog boxes so that the box can be displayed relative to our parent component. |
protected boolean |
isRegularFrame()
We use this to determine whether we are in some sort of Dialog window or a regular (J)Frame. |
static void |
main(java.lang.String[] args)
|
void |
mouseClicked(java.awt.event.MouseEvent theEvent)
Handle a popup menu request |
void |
mouseEntered(java.awt.event.MouseEvent theEvent)
|
void |
mouseExited(java.awt.event.MouseEvent theEvent)
|
void |
mousePressed(java.awt.event.MouseEvent theEvent)
|
void |
mouseReleased(java.awt.event.MouseEvent theEvent)
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener theListener)
Remove a property change listener from this object. |
protected void |
saveEditorFramePreferences()
Save the location and size of the rule editor frame. |
protected void |
saveExceptionFramePreferences()
Save the location and size of the exception frame. |
protected void |
saveFramePreferences()
Save the locations and sizes of each frame in the preferences file. |
protected void |
saveHelpFramePreferences()
Save the location and size of the help frame. |
protected void |
saveOutputFramePreferences()
Save the location and size of the output frame. |
protected void |
saveXmlFramePreferences()
Save the location and size of the XML frame. |
void |
setObject(java.lang.Object theRuleSet)
Save a reference to the object that is being customized. |
void |
updateObject()
This is an "OK" from a JDialog box thrown up by the AbleCustomizerDialog class. |
protected void |
xferFileNames()
Transfer the current "source" and "serial" file names to the object being customized. |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext,
getUIClassID,
paramString,
updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener,
addNotify,
addVetoableChangeListener,
computeVisibleRect,
contains,
createToolTip,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
fireVetoableChange,
getActionForKeyStroke,
getAlignmentX,
getAlignmentY,
getAutoscrolls,
getBorder,
getBounds,
getClientProperty,
getComponentGraphics,
getConditionForKeyStroke,
getDebugGraphicsOptions,
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,
paint,
paintBorder,
paintChildren,
paintComponent,
paintImmediately,
paintImmediately,
processComponentKeyEvent,
processFocusEvent,
processKeyEvent,
processMouseMotionEvent,
putClientProperty,
registerKeyboardAction,
registerKeyboardAction,
removeAncestorListener,
removeNotify,
removeVetoableChangeListener,
repaint,
repaint,
requestDefaultFocus,
requestFocus,
resetKeyboardActions,
reshape,
revalidate,
scrollRectToVisible,
setAlignmentX,
setAlignmentY,
setAutoscrolls,
setBackground,
setBorder,
setDebugGraphicsOptions,
setDoubleBuffered,
setEnabled,
setFont,
setForeground,
setMaximumSize,
setMinimumSize,
setNextFocusableComponent,
setOpaque,
setPreferredSize,
setRequestFocusEnabled,
setToolTipText,
setUI,
setVisible,
unregisterKeyboardAction,
update |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getLayout,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
setLayout,
validate,
validateTree |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
getBackground,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getInputContext,
getInputMethodRequests,
getLocale,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getToolkit,
getTreeLock,
gotFocus,
handleEvent,
hide,
imageUpdate,
inside,
isDisplayable,
isEnabled,
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,
removePropertyChangeListener,
repaint,
repaint,
repaint,
resize,
resize,
setBounds,
setBounds,
setComponentOrientation,
setCursor,
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,
wait,
wait,
wait |
Field Detail |
protected javax.swing.JFileChooser myFileDialog
protected int myFileOption
protected java.io.File myCurrentDir
protected javax.swing.event.UndoableEditListener myUndoHandler
protected javax.swing.undo.UndoManager myUndoManager
Constructor Detail |
public AbleRuleSetEditor()
Method Detail |
public void addPropertyChangeListener(java.beans.PropertyChangeListener theListener)
theListener
- the property change listener to be added to this
object.
public void removePropertyChangeListener(java.beans.PropertyChangeListener theListener)
theListener
- the property change listener to be removed from this
object.
public void setObject(java.lang.Object theRuleSet)
theRuleSet
- The AbleRuleSet object that is to be changed.
public void updateObject() throws java.rmi.RemoteException
public void mouseClicked(java.awt.event.MouseEvent theEvent)
public void mouseEntered(java.awt.event.MouseEvent theEvent)
public void mouseExited(java.awt.event.MouseEvent theEvent)
public void mousePressed(java.awt.event.MouseEvent theEvent)
public void mouseReleased(java.awt.event.MouseEvent theEvent)
protected void debugTrace(java.lang.String theMessage)
theMessage
- A String containing text to be traced.
protected javax.swing.text.JTextComponent getEditor()
protected void xferFileNames()
protected java.awt.Frame getFrame()
protected java.awt.Window getWindow_()
protected boolean isRegularFrame()
If we are in a dialog box, we don't honor any exit requests from the user.
Otherwise, we assume that we've been put in a frame that can be disposed of, and we will indeed dispose of ourselves when the user presses exit! We will also save parent frame location and size.
protected void exitCustomizer()
If we are in a regular frame, we check to see whether the ruleset needs to be saved, we save all our frame sizes and locations, and then we dispose of our frame.
If we are in some sort of dialog box, we simply disable our exit action, and let the dialog handle the "OK" & "Cancel" options itself.
protected void saveFramePreferences()
protected void saveEditorFramePreferences()
protected void saveExceptionFramePreferences()
protected void saveHelpFramePreferences()
protected void saveOutputFramePreferences()
protected void saveXmlFramePreferences()
public static void main(java.lang.String[] args)
|
ABLE, Version 1.1b | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |