home *** CD-ROM | disk | FTP | other *** search
/ PC World 1998 October / PCWorld_1998-10_cd.bin / software / prehled / inprise / JRUNTIME.Z / _interactions.ini < prev    next >
Text File  |  1998-05-08  |  15KB  |  346 lines

  1. ;--------------------------------------------------------------------
  2. ;
  3. ;  Main registry for the Interaction Wizard
  4. ;
  5. ; Note: for now we gather all registrations here (into a single file)
  6. ;
  7. ; Beware: the format for methods specification has been changed:
  8. ;
  9. ; Specify a method spec within a quoted string:
  10. ;   method_spec:  <return type> '"' <method_name> '(' <arg_list> ')' '"'
  11. ;   arg_list   :  <arg> [ ',' <arg> ]
  12. ;   arg        :  [modifier] <type> [<arg_name> [initializer]]
  13. ;   modifier   :  "[hide]" | "[readOnly]"
  14. ;   type       :  <java type>
  15. ;   name       :  <java ident>
  16. ;   initializer:  '=' <expr>
  17. ;   expr       :  <string> | <litteral>
  18. ;   string     :  <java quoted string>
  19. ;   litteral   :  '#' <just anything> '#'
  20. ;
  21. ; Modifier "[hide]": generate the argument without showing it at the UI; only makes sense if an initializer is given;
  22. ; Modifier "[readOnly]": also only makes sense if an initializer is specified. In the UI: show the initial value in read only mode.
  23. ; arg_name: this is the localized formal parameter which is shown to the user in the UI. If not specified, a default, localized name
  24. ;           is proposed at the UI.
  25. ;
  26. ; Examples:
  27. ;  "Enable the menu..."             String "setEnabled(boolean)"
  28. ;  "Enable the menu..."             String "setEnabled(boolean Enabled)"
  29. ;  "Disable the menu"               String "setEnabled([hide] boolean Enabled=false)"
  30. ;  "Set the data..."                void   "set(int Row, int Column, Object Data=null)"
  31. ;  "Set the View Manager..."        void   "setViewManager(ViewManager Manager=#new BasicViewManager(new FocusableItemPainter(\n"+
  32. ;                                          "        new SelectableTextItemPainter(Alignment.LEFT | Alignment.MIDDLE)),\n"+
  33. ;                                          "        new TextItemEditor(Alignment.LEFT | Alignment.MIDDLE)#)"
  34. ;
  35. ;--------------------------------------------------------------------
  36.  
  37. adapter COMPONENT_EVENTS java.awt.event.ComponentListener {
  38.   "Resized"  componentResized(ComponentEvent)
  39.   "Moved"  componentMoved(ComponentEvent)
  40.   "Shown"  componentShown(ComponentEvent)
  41.   "Hidden"  componentHidden(ComponentEvent)
  42. }
  43.  
  44. adapter ACTION_EVENTS java.awt.event.ActionListener {
  45.   "Activated"  actionPerformed(ActionEvent)
  46. }
  47.  
  48. adapter MENU_EVENTS java.awt.event.ActionListener {
  49.   "Item Selected"  actionPerformed(ActionEvent)
  50. }
  51.  
  52. adapter BUTTON_EVENTS java.awt.event.ActionListener {
  53.   "Pressed"  actionPerformed(ActionEvent)
  54. }
  55.  
  56. adapter MOUSE_EVENTS java.awt.event.MouseListener {
  57.   "Mouse Clicked"  mouseClicked(MouseEvent)
  58.   "Mouse Pressed"  mousePressed(MouseEvent)
  59.   "Mouse Released"  mouseReleased(MouseEvent)
  60.   "Mouse Entered"  mouseEntered(MouseEvent)
  61.   "Mouse Exited"  mouseExited(MouseEvent)
  62. }
  63.  
  64. adapter MOUSE_MOTION_EVENTS java.awt.event.MouseMotionListener {
  65.   "Mouse Moved"  mouseMoved(MouseEvent)
  66.   "Mouse Dragged"  mouseDrag(MouseEvent)
  67. }
  68.  
  69. adapter FOCUS_EVENTS java.awt.event.FocusListener {
  70.   "Got focus"  focusGained(FocusEvent)
  71.   "Lost Focus"  focusLost(FocusEvent)
  72. }
  73.  
  74. adapter WINDOW_EVENTS java.awt.event.WindowListener {
  75.   "Activated"  windowActivated(WindowEvent)
  76.   "Deactivated"  windowDeactivated(WindowEvent)
  77.   "Iconified"  windowIconified(WindowEvent)
  78.   "Deiconified"  windowDeiconified(WindowEvent)
  79. }
  80.  
  81. adapter ACCESS_EVENTS borland.jbcl.dataset.AccessListener {
  82.   "Data set accessed"  openAccess(OpenAccessEvent)
  83.   "Data set closed"  closeAccess(CloseAccessEvent)
  84. }
  85.  
  86. adapter SELECTABLE_EVENTS java.awt.event.ItemListener {
  87.   "Selected"  itemStateChanged(ItemEvent)
  88. }
  89.  
  90.  adapter ADJUSTMENT_EVENTS java.awt.event.AdjustmentListener {
  91.   "Value changed"  adjustmentValueChanged(AdjustmentEvent)
  92. }
  93.  
  94. adapter TEXT_EVENTS java.awt.event.TextListener {
  95.   "Text changed"  textValueChanged(TextEvent)
  96. }
  97.  
  98. adapter VECTOR_SELECTION_EVENTS borland.jbcl.model.VectorSelectionListener {
  99.   "Selection changed"  selectionChanged(VectorSelectionEvent)
  100.   "Selection item changed"  selectionItemChanged(VectorSelectionEvent)
  101.   "Selection range changed"  selectionRangeChanged(VectorSelectionEvent)
  102. }
  103.  
  104. adapter SINGLETONMODEL_EVENTS borland.jbcl.model.SingletonModelListener {
  105.   "modelContentChanged"  modelContentChanged(borland.jbcl.model.SingletonModelEvent)
  106. }
  107.  
  108. adapter CONTAINER_EVENTS java.awt.event.ContainerListener {
  109.   "componentAdded"  componentAdded(java.awt.event.ContainerEvent)
  110.   "componentRemoved"  componentRemoved(java.awt.event.ContainerEvent)
  111. }
  112.  
  113. adapter KEY_EVENTS java.awt.event.KeyListener {
  114.   "keyTyped"  keyTyped(java.awt.event.KeyEvent)
  115.   "keyPressed"  keyPressed(java.awt.event.KeyEvent)
  116.   "keyReleased"  keyReleased(java.awt.event.KeyEvent)
  117. }
  118.  
  119. adapter VECTORMODEL_EVENTS borland.jbcl.model.VectorModelListener {
  120.   "modelStructureChanged"  modelStructureChanged(borland.jbcl.model.VectorModelEvent)
  121.   "modelContentChanged"  modelContentChanged(borland.jbcl.model.VectorModelEvent)
  122. }
  123.  
  124. adapter VECTORSUBFOCUS_EVENTS borland.jbcl.model.VectorSubfocusListener {
  125.   "subfocusChanging"  subfocusChanging(borland.jbcl.model.VectorSubfocusEvent)
  126.   "subfocusChanged"  subfocusChanged(borland.jbcl.model.VectorSubfocusEvent)
  127. }
  128.  
  129. adapter GRAPHMODEL_EVENTS borland.jbcl.model.GraphModelListener {
  130.   "modelStructureChanged"  modelStructureChanged(borland.jbcl.model.GraphModelEvent)
  131.   "modelContentChanged"  modelContentChanged(borland.jbcl.model.GraphModelEvent)
  132. }
  133.  
  134. adapter GRAPHSELECTION_EVENTS borland.jbcl.model.GraphSelectionListener {
  135.   "selectionItemChanged"  selectionItemChanged(borland.jbcl.model.GraphSelectionEvent)
  136.   "selectionChanged"  selectionChanged(borland.jbcl.model.GraphSelectionEvent)
  137. }
  138.  
  139. adapter GRAPHSUBFOCUS_EVENTS borland.jbcl.model.GraphSubfocusListener {
  140.   "subfocusChanging"  subfocusChanging(borland.jbcl.model.GraphSubfocusEvent)
  141.   "subfocusChanged"  subfocusChanged(borland.jbcl.model.GraphSubfocusEvent)
  142. }
  143.  
  144. adapter TREE_EVENTS borland.jbcl.view.TreeListener {
  145.   "nodeExpanded"  nodeExpanded(borland.jbcl.view.TreeEvent)
  146.   "nodeCollapsed"  nodeCollapsed(borland.jbcl.view.TreeEvent)
  147. }
  148.  
  149. adapter HEADER_EVENTS borland.jbcl.view.HeaderListener {
  150.   "headerItemClicked"  headerItemClicked(borland.jbcl.view.HeaderEvent)
  151.   "headerItemResizing"  headerItemResizing(borland.jbcl.view.HeaderEvent)
  152.   "headerItemMoving"  headerItemMoving(borland.jbcl.view.HeaderEvent)
  153. }
  154.  
  155. adapter MATRIXMODEL_EVENTS borland.jbcl.model.MatrixModelListener {
  156.   "modelContentChanged"  modelContentChanged(borland.jbcl.model.MatrixModelEvent)
  157.   "modelStructureChanged"  modelStructureChanged(borland.jbcl.model.MatrixModelEvent)
  158. }
  159.  
  160. adapter MATRIXSELECTION_EVENTS borland.jbcl.model.MatrixSelectionListener {
  161.   "selectionItemChanged"  selectionItemChanged(borland.jbcl.model.MatrixSelectionEvent)
  162.   "selectionRangeChanged"  selectionRangeChanged(borland.jbcl.model.MatrixSelectionEvent)
  163.   "selectionChanged"  selectionChanged(borland.jbcl.model.MatrixSelectionEvent)
  164. }
  165.  
  166. adapter MATRIXSUBFOCUS_EVENTS borland.jbcl.model.MatrixSubfocusListener {
  167.   "subfocusChanging"  subfocusChanging(borland.jbcl.model.MatrixSubfocusEvent)
  168.   "subfocusChanged"  subfocusChanged(borland.jbcl.model.MatrixSubfocusEvent)
  169. }
  170.  
  171. component java.awt.Frame generates WINDOW_EVENTS, FOCUS_EVENTS, MOUSE_EVENTS, MOUSE_MOTION_EVENTS, COMPONENT_EVENTS {
  172.    "Set the frame title..."  void  "setTitle(String Title)"
  173. }
  174.  
  175. component java.awt.Panel generates MOUSE_EVENTS, MOUSE_MOTION_EVENTS, FOCUS_EVENTS, COMPONENT_EVENTS {
  176. }
  177.  
  178. component java.awt.Button generates BUTTON_EVENTS, MOUSE_EVENTS, FOCUS_EVENTS, MOUSE_MOTION_EVENTS, COMPONENT_EVENTS {
  179.    "Get the label..."  String  "getLabel()"
  180.    "Set the label..."  String  "setLabel(String Label)"
  181. }
  182.  
  183. component java.awt.Checkbox generates SELECTABLE_EVENTS, COMPONENT_EVENTS {
  184.    "Get the label..."  String  "getLabel()"
  185.    "Set the label..."  String  "setLabel(String Label)"
  186.    "Get the state..."  boolean  "getState()"
  187.    "Set the state..."  boolean  "setState(boolean State)"
  188. }
  189.  
  190. component java.awt.List generates SELECTABLE_EVENTS, FOCUS_EVENTS {
  191.    "Get the selected item"  String  "getSelectedItem()"
  192.    "Get the selected index"  int  "getSelectedIndex()"
  193.    "Set the selected item..."  String  "setSelectedItem(String Item)"
  194.    "Set the selected index..."  int  "setSelectedIndex(int Index)"
  195. }
  196.  
  197. component java.awt.Choice generates SELECTABLE_EVENTS, FOCUS_EVENTS {
  198.    "Get the selected item"  String  "getSelectedItem()"
  199.    "Get the selected index"  int  "getSelectedIndex()"
  200.    "Set the selected item..."  String  "select(String Item)"
  201.    "Set the selected index..."  int  "select(int Index)"
  202. }
  203.  
  204. component java.awt.FileDialog generates ACTION_EVENTS {
  205.    "Show the file dialog"  boolean  "setVisible([hide] boolean Visible=true)"
  206.    "Hide the file dialog"  boolean  "setVisible([hide] boolean Visible=false)"
  207.    "Get the filename..."  String  "getFilename()"
  208.    "Show or hide the dialog..."  boolean  "setVisible(boolean Visible)"
  209. }
  210.  
  211. component java.awt.MenuItem generates MENU_EVENTS {
  212.    "Get the label..."  String  "getLabel()"
  213.    "Set the label..."  String  "setLabel(String Label)"
  214.    "Enable the menu"  String  "setEnabled([hide] boolean Enabled=true)"
  215.    "Disable the menu"  String  "setEnabled([hide] boolean Enabled=false)"
  216.    "Enable or disable the menu..."  String  "setEnabled(boolean Enable)"
  217. }
  218. component java.awt.CheckboxMenuItem {
  219.    "Check the menu"  void  "setChecked([hide] boolean Checked=true)"
  220.    "Uncheck the menu"  void  "setChecked([hide] boolean Checked=false)"
  221.    "Get the label..."  String  "getLabel()"
  222.    "Set the label..."  String  "setLabel(String Label)"
  223.    "Enable the menu"  String  "setEnabled([hide] boolean Enabled=true)"
  224.    "Disable the menu"  String  "setEnabled([hide] boolean Enabled=false)"
  225.    "Enable or disable the menu..."  String  "setEnabled(boolean Enable)"
  226. }
  227.  
  228. component java.awt.Scrollbar generates ADJUSTMENT_EVENTS {
  229.    "Set the value..."  int  "setValue(int Value)"
  230.    "Get the value"  int  "getValue()"
  231. }
  232.  
  233. component java.awt.TextComponent generates TEXT_EVENTS, FOCUS_EVENTS {
  234.    "Set the text..."  String  "setText(String Text)"
  235.    "Get the text"  String  "getText()"
  236. }
  237.  
  238. component borland.jbcl.view.ButtonView generates BUTTON_EVENTS {
  239.    "Get the label..."  String  "getLabel()"
  240.    "Set the label..."  String  "setLabel(String Label)"
  241. }
  242.  
  243. component borland.jbcl.view.TabsetView generates VECTOR_SELECTION_EVENTS {
  244.    "Get the selected tab"  int  "getSelectedIndex()"
  245.    "Set the selected tab..."  int  "setSelectedIndex(int Index)"
  246.    "Get the label..."  String  "getLabel()"
  247.    "Set the label..."  String  "setLabel(String Label)"
  248. }
  249.  
  250. component borland.jbcl.control.ButtonControl generates BUTTON_EVENTS, SINGLETONMODEL_EVENTS, ACTION_EVENTS, FOCUS_EVENTS, KEY_EVENTS, MOUSE_EVENTS {
  251.    "set the orientation..."  void  "setOrientation(int Orientation=#borland.jbcl.util.Orientation.HORIZONTAL#)"
  252.    "Set the label..."  void  "setLabel(java.lang.String Label)"
  253. }
  254.  
  255. component borland.jbcl.control.LabelControl generates SINGLETONMODEL_EVENTS {
  256.    "setText"  void  "setText(java.lang.String)"
  257. }
  258.  
  259. component borland.jbcl.control.TextControl generates FOCUS_EVENTS, KEY_EVENTS {
  260.    "setText"  void  "setText(java.lang.String)"
  261.    "getText"  java.lang.String  "getText()"
  262. }
  263.  
  264. component borland.jbcl.control.ListControl generates VECTORMODEL_EVENTS, VECTOR_SELECTION_EVENTS, VECTORSUBFOCUS_EVENTS, ACTION_EVENTS {
  265.    "setItems"  void  "setItems(java.lang.String[])"
  266.    "setItems"  void  "setItems(borland.jbcl.dataset.DataSet, java.lang.String)"
  267.    "addItem"  void  "addItem(java.lang.Object)"
  268.    "addItem"  void  "addItem(int, java.lang.Object)"
  269.    "remove"  void  "remove(int)"
  270.    "getSelection"  borland.jbcl.model.WritableVectorSelection  "getSelection()"
  271.    "getSubfocus"  int  "getSubfocus()"
  272. }
  273.  
  274. component borland.jbcl.control.TransparentImage generates MOUSE_EVENTS {
  275.    "setImageName"  void  "setImageName(java.lang.String)"
  276.    "getImageName"  java.lang.String  "getImageName()"
  277.    "setImage"  void  "setImage(java.awt.Image)"
  278.    "getImage"  java.awt.Image  "getImage()"
  279.    "setImageURL"  void  "setImageURL(java.net.URL)"
  280.    "getImageURL"  java.net.URL  "getImageURL()"
  281. }
  282.  
  283. component borland.jbcl.control.ShapeControl {
  284.    "setFill"  void  "setFill(boolean)"
  285.    "setEdgeColor"  void  "setEdgeColor(java.awt.Color)"
  286.    "setDrawEdge"  void  "setDrawEdge(boolean)"
  287. }
  288.  
  289. component borland.jbcl.control.TreeControl generates GRAPHMODEL_EVENTS, GRAPHSELECTION_EVENTS, GRAPHSUBFOCUS_EVENTS, TREE_EVENTS {
  290.    "addChild"  borland.jbcl.model.GraphLocation  "addChild(borland.jbcl.model.GraphLocation, java.lang.Object)"
  291.    "addChild"  borland.jbcl.model.GraphLocation  "addChild(borland.jbcl.model.GraphLocation, borland.jbcl.model.GraphLocation, java.lang.Object)"
  292.    "removeChildren"  void  "removeChildren(borland.jbcl.model.GraphLocation)"
  293.    "remove"  void  "remove(borland.jbcl.model.GraphLocation)"
  294.    "getSelection"  borland.jbcl.model.WritableGraphSelection  "getSelection()"
  295.    "getSubfocus"  borland.jbcl.model.GraphLocation  "getSubfocus()"
  296.    "expand"  void  "expand(borland.jbcl.model.GraphLocation)"
  297.    "collapse"  void  "collapse(borland.jbcl.model.GraphLocation)"
  298.    "expandAll"  void  "expandAll(borland.jbcl.model.GraphLocation)"
  299.    "collapseAll"  void  "collapseAll(borland.jbcl.model.GraphLocation)"
  300. }
  301.  
  302. component borland.jbcl.control.ButtonBar generates ACTION_EVENTS {
  303.   "setLabels"  void  "setLabels(java.lang.String[])"
  304.    "setButtonType"  void  "setButtonType(int)"
  305.    "setButtonEnabled"  void  "setButtonEnabled(int, boolean)"
  306.    "isButtonEnabled"  boolean  "isButtonEnabled(java.lang.String)"
  307.    "setButtonVisible"  void  "setButtonVisible(java.lang.String, boolean)"
  308.    "isButtonVisible"  boolean  "isButtonVisible(java.lang.String)"
  309. }
  310.  
  311. component borland.jbcl.control.FieldControl generates SINGLETONMODEL_EVENTS, KEY_EVENTS, ACTION_EVENTS {
  312.    "getText"  java.lang.String  "getText()"
  313.    "setText"  void  "setText(java.lang.String)"
  314.    "getColumnName"  java.lang.String  "getColumnName()"
  315.    "canSet"  boolean  "canSet(boolean)"
  316. }
  317.  
  318. component borland.jbcl.control.GridControl generates MATRIXSELECTION_EVENTS, MATRIXSUBFOCUS_EVENTS, ACTION_EVENTS {
  319.    "setItems"  void  "setItems(java.lang.String[][])"
  320.    
  321.    "setSelectRow"  void  "setSelectRow(boolean)"
  322.    "get"  java.lang.Object  "get(int, int)"
  323.    "set"  void  "set(int, int, java.lang.Object)"
  324.    "setSelection"  void  "setSelection(borland.jbcl.model.WritableMatrixSelection)"
  325.    "getSelection"  borland.jbcl.model.WritableMatrixSelection  "getSelection()"
  326.    "setSubfocus"  void  "setSubfocus(borland.jbcl.model.MatrixLocation)"
  327.    "getSubfocus"  borland.jbcl.model.MatrixLocation  "getSubfocus()"
  328. }
  329.  
  330. component borland.jbcl.control.ImageControl generates SINGLETONMODEL_EVENTS {
  331.    "setImageName"  void  "setImageName(java.lang.String)"
  332.    "getImageName"  java.lang.String  "getImageName()"
  333.    "setImage"  void  "setImage(java.awt.Image)"
  334.    "getImage"  java.awt.Image  "getImage()"
  335.    "setImageURL"  void  "setImageURL(java.net.URL)"
  336.    "getImageURL"  java.net.URL  "getImageURL()"
  337. }
  338.  
  339. component borland.jbcl.control.NavigatorControl generates ACTION_EVENTS {
  340.    "setButtonEnabled"  void  "setButtonEnabled(int, boolean)"
  341.    "setButtonEnabled"  void  "setButtonEnabled(java.lang.String, boolean)"
  342.    "setButtonVisible"  void  "setButtonVisible(java.lang.String, boolean)"
  343. }
  344.  
  345.  
  346.