|
UIEvents
#This documents the structure and purpose of the User Interface Events. All events include String type Long timestamp ActivityDocumentAddedEvent Represents the creation of an activity document event ActivityDocument activityDocument ActivityDocumentClearedEvent Represents the removal of all of the content of an activity document event ActivityDocument activityDocument ActivityDocumentCompletedEvent Represents the event of pressing of the last done button of the activity document ActivityDocument activityDocument ActivityDocumentElementClosedEvent Represents the closing of an element of an activity document. ActivityDocumentComponent element ActivityDocumentElementMovedOrResizedEvent Represents the movement or resizing (or both) of an activity document element event. The same event is used since some resizing also moves the upper left corner and is also considered a move. ActivityDocumentComponent activityDocumentComponent, Point newLocation, Dimension newSize ActivityDocumentTextAreaDissolvedEvent Represents the event of dissolving a text area into a canvas in an activity document. ActivityDocument activityDocument, ActivityDocumentTextArea textArea, ActivityDocumentComponent documentCanvas, Point location ActivityDocumentTextAreaUndissolvedEvent Represents the event of undissolving a text area into a canvas in an activity document. ActivityDocument activityDocument, ActivityDocumentTextArea textArea, ActivityDocumentComponent documentCanvas ActivityDocumentTextChangedEvent Represents the event of the change in the contents a text area in an activity document. Triggered when the mouse leaves the area. String currentText, ActivityDocumentTextArea activityDocumentTextArea ChangeInColorAllocationCorrectness Represents the change in the correctness of a color allocation. BlockShape shape, ModelColor color, boolean ok, // true if now correct boolean global, // true if this is about the entire model boolean masterModel // true if shape is in the master model ChangeInTotalTileAllocationCorrectness Represents the change in the correctness of the total tile allocation. ExpresserModel model, boolean ok, // true if now correct boolean masterModel // true if model is the master model DropExpressionOnExpressionEvent Represents the event of dropping an expression on an expression. ExpressionPanel<IntegerValue> target, ExpressionPanel<IntegerValue> dropped DropExpressionOnGlobalColorAllocationPanelEvent Represents events where an expression was dropped on an expression that is contained in a rule (GlobalColorAllocationPanel) ExpressionPanel<IntegerValue> target, ExpressionPanel<IntegerValue> dropped, GlobalColorAllocationPanel globalColorAllocationPanel (Note this should be merged with the above some day -- but requires many other changes to do so.) DropTiedNumberOnGlobalColorAllocationPanelEvent Represents events where tied number was dropped on an expression that is contained in a rule (GlobalColorAllocationPanel) ExpressionPanel<IntegerValue> target, TiedNumberPanel<IntegerValue> tiedNumberPanelDropped, GlobalColorAllocationPanel globalColorAllocationPanel ElementAddedToActivityDocumentEvent Represents the event of adding an element (text, canvas, or canvas with animation controls) to an activity document ActivityDocument container, ActivityDocumentComponent element ExpressionDragEndEvent Represents the end of a drag of an expression to the canvas. Could supplanted by a drop event. ExpressionPanel<IntegerValue> expressionPanel, ObjectSetCanvas canvas ExpressionDragStartEvent Represents the start of a drag of an expression from canvas. Dragee is a copy of the expressionPanel. ExpressionPanel<IntegerValue> expressionPanel, ObjectSetCanvas canvas, ExpressionPanel<IntegerValue> dragee ExpressionMenuItemEvent Represents the event of clicking on an expression to bring up its pop up menu ExpressionPanel<IntegerValue> expression, String menuItemLabel ExpressionMenuPopupEvent Represents the popping up of a menu for an expression. ExpressionPanel<IntegerValue> source, String kind If kind = "Main" then this is the popup menu for the expression. If kind = "Drop" then an expression was dropped on an expression. GlobalColorAllocationMenuItemEvent Represents choosing a color of a rule (global color allocation panel) ModelColor color, GlobalColorAllocationPanel globalColorAllocationPanel GoalAreaCheckBoxToggledEvent Represents the event of toggling the check box in a goal area. newState is true if the box is checked. GoalArea goalArea int checkBoxIndex boolean newState GoalFinishedButtonClickedEvent Represents the pressing of the Done button to indicate that the student believes he/she is finished. GoalArea goalArea NewModelEvent Represents events where a user creates a new model. ExpresserModel model PlayAnimationButtonSetStepAmountEvent Represents events of changing the amount when stepping through of animation. PlayAnimationButton source, int stepAmount PlayAnimationButtonStepEvent Represents events of stepping through of animation. PlayAnimationButton button PlayAnimationButtonToggledEvent Represents the toggling of the play animation button. PlayAnimationButton source, boolean startPlaying, boolean onAnActivityDocumentCanvas ShapeProxyDragEndEvent Represents the event of the end of a drag of a shape proxy to the canvas. ShapeProxy proxy, ObjectSetCanvas canvas ShapeProxyDragStartEvent Represents the event of starting to drag a shape proxy from canvas. dragee is either the proxy or a copy of it. ShapeProxy proxy, ObjectSetCanvas canvas, ShapeProxy dragee ShapeProxyMenuItemEvent Represents the event of selecting an item from the popup menu of a shape proxy. ShapeProxy shapeProxy, String menuLabel ShapeProxyMenuPopupEvent Represents the event of popping up a menu for a shape proxy. ShapeProxy shapeProxy ShapesMenuItemEvent Represents the event of clicking on a shape to get its popup menu. List<BlockShape> shapes, String menuItemLabel ShapesMenuPopupEvent Represents the event of popping up a menu for a list of selected shapes. List<BlockShape> shapes ShowBaseShapePropertiesEvent A representation of the event when a user clicks on a property list in order to display the property list of the base shape that is being repeated. BlockShape shape, BlockShape baseShape TabbedPanelAddedEvent Represents the change of tab in a tabbed panel. String tabName, int index TabbedPanelEventChanged Represents the change of tab in a tabbed panel. String tabName, int index TabbedPanelEventRemoved Represents the change of tab in a tabbed panel. String tabName, int index TaskActivityDocumentAddedEvent Represents the event of loading a new task activity. ActivityDocument activityDocument, String activityName, boolean fromMenu TiedNumberColorEvent Represents a feedback event where the background color was changed by the system because of a change by the user of the name of a tied number. The feedback indicates the status of the name change. TiedNumberPanel<IntegerValue> tiedNumber, String descriptionOfChange -- A description of the purpose of the color change (Note this should be merged with the corresponding Expression events some day -- but requires many other changes to do so.) TiedNumberDragEndEvent Represents the end of a drag of a tied number to the canvas. TiedNumberPanel<IntegerValue> tiedNumberPanel, ObjectSetCanvas canvas TiedNumberDragStartEvent Represents the end of a drag of a tied number from canvas. Dragee is a copy of tiedNumberPanel that is being dragged. TiedNumberPanel<IntegerValue> tiedNumberPanel, ObjectSetCanvas canvas, ExpressionPanel<IntegerValue> dragee TiedNumberMenuItemEvent Represents events of clicking on a tied number to obtain its popup menu. TiedNumberPanel<IntegerValue> expression, String menuLabel TiedNumberMenuPopupEvent Represents the popping up of a menu for a tied number. TiedNumberPanel<IntegerValue> source, String kind TiedNumberSlaveValueChangedEvent Represents an event where the value of the corresponding tied number in the slave panel changes value. TiedNumberPanel<IntegerValue> tiedNumber TiedNumberValueEditedEvent Represents an event where the value of the a tied number is edited. TiedNumberPanel<IntegerValue> tiedNumber, boolean insert |