Skip to main content

Class CommandCodes

public final class CommandCodes

Standard command codes, matching JT Vision conventions.

org.viktor44.jtvision.core.CommandCodes

Summary​

Constructors​

VisibilitySignature
privateCommandCodes()

Fields​

ModifiersField nameType
public static finalcmValidint
public static finalcmQuitint
public static finalcmErrorint
public static finalcmMenuint
public static finalcmCloseint
public static finalcmZoomint
public static finalcmResizeint
public static finalcmNextint
public static finalcmPrevint
public static finalcmHelpint
public static finalcmOKint
public static finalcmCancelint
public static finalcmYesint
public static finalcmNoint
public static finalcmDefaultint
public static finalcmCutint
public static finalcmCopyint
public static finalcmPasteint
public static finalcmUndoint
public static finalcmClearint
public static finalcmTileint
public static finalcmCascadeint
public static finalcmRedoint
public static finalcmNewint
public static finalcmOpenint
public static finalcmSaveint
public static finalcmSaveAsint
public static finalcmSaveAllint
public static finalcmChDirint
public static finalcmDosShellint
public static finalcmCloseAllint
public static finalcmReceivedFocusint
public static finalcmReleasedFocusint
public static finalcmCommandSetChangedint
public static finalcmScrollBarChangedint
public static finalcmScrollBarClickedint
public static finalcmSelectWindowNumint
public static finalcmListItemSelectedint
public static finalcmScreenChangedint
public static finalcmTimerExpiredint
public static finalcmRecordHistoryint
public static finalcmGrabDefaultint
public static finalcmReleaseDefaultint
public static finalcmColorForegroundChangedint
public static finalcmColorBackgroundChangedint
public static finalcmColorSetint
public static finalcmNewColorItemint
public static finalcmNewColorIndexint
public static finalcmSaveColorIndexint
public static finalcmFindint
public static finalcmReplaceint
public static finalcmSearchAgainint
public static finalcmOutlineItemSelectedint
public static finalcmCharLeftint
public static finalcmCharRightint
public static finalcmWordLeftint
public static finalcmWordRightint
public static finalcmLineStartint
public static finalcmLineEndint
public static finalcmLineUpint
public static finalcmLineDownint
public static finalcmPageUpint
public static finalcmPageDownint
public static finalcmTextStartint
public static finalcmTextEndint
public static finalcmNewLineint
public static finalcmBackSpaceint
public static finalcmDelCharint
public static finalcmDelWordint
public static finalcmDelStartint
public static finalcmDelEndint
public static finalcmDelLineint
public static finalcmInsModeint
public static finalcmStartSelectint
public static finalcmHideSelectint
public static finalcmIndentModeint
public static finalcmUpdateTitleint
public static finalcmSelectAllint
public static finalcmDelWordLeftint
public static finalcmEncodingint
public static finalcmFileFocusedint
public static finalcmFileDoubleClickedint
public static finalcmFileOpenint
public static finalcmFileReplaceint
public static finalcmFileClearint
public static finalcmFileInitint
public static finalcmChangeDirint
public static finalcmRevertint

Constructors​

CommandCodes()​

No method description provided

Fields​

int cmValid​

Passed to valid() to check whether a newly instantiated view is valid.

int cmQuit​

Terminates the application by calling endModal(cmQuit) on the application object.

int cmError​

Never handled by any object; can represent an unimplemented or unsupported command.

int cmMenu​

Causes a menu view to call execView() on itself to begin a menu-selection process.

int cmClose​

Closes a window. If the window is modal a cmCancel command is generated via putEvent(); otherwise the window's close() method is called directly.

int cmZoom​

Causes a zoomable window to call its zoom() method.

int cmResize​

Causes a resizable window to call dragView() on itself so the user can resize it.

int cmNext​

Selects the next window on the desktop.

int cmPrev​

Selects the previous window on the desktop.

int cmHelp​

Opens the context-sensitive help system for the currently focused view.

int cmOK​

The OK button was pressed; the dialog should accept its data and close.

int cmCancel​

The Cancel button, close icon, or Escape key was used; the dialog should discard its data and close.

int cmYes​

The Yes button was pressed in a message box.

int cmNo​

The No button was pressed in a message box.

int cmDefault​

The default button in a dialog was activated.

int cmCut​

Cut the selected text and place it on the clipboard.

int cmCopy​

Copy the selected text to the clipboard without removing it.

int cmPaste​

Paste the clipboard contents at the current insertion point.

int cmUndo​

Undo the last editing operation.

int cmClear​

Delete the selected text without copying it to the clipboard.

int cmTile​

Tile all tileable windows on the desktop.

int cmCascade​

Cascade all tileable windows on the desktop.

int cmRedo​

Redo the last undone editing operation.

int cmNew​

Open a new, empty document (File | New).

int cmOpen​

Open an existing file from disk (File | Open).

int cmSave​

Save the current document to its existing file (File | Save).

int cmSaveAs​

Save the current document under a new name (File | Save As).

int cmSaveAll​

Save all open documents (File | Save All).

int cmChDir​

Change the current working directory (File | Change Dir).

int cmDosShell​

Suspend the application and shell to the operating system (File | DOS Shell).

int cmCloseAll​

Close all open documents (File | Close All).

int cmReceivedFocus​

Broadcast sent by setState() to the view's owner whenever sfFocused is set, so that peer views (e.g. labels) can update their highlighted state.

int cmReleasedFocus​

Broadcast sent by setState() to the view's owner whenever sfFocused is cleared, so that peer views can remove their highlighted state.

int cmCommandSetChanged​

Broadcast sent by the application's idle() method whenever it detects a change in the set of currently enabled commands, allowing views to enable or disable themselves.

int cmScrollBarChanged​

Broadcast sent by a scroll bar to its owner whenever the scroll bar's value changes, so the linked view can scroll its content accordingly.

int cmScrollBarClicked​

Broadcast sent by a scroll bar to its owner when the user clicks any part of the scroll bar, allowing the owner to update its display interactively.

int cmSelectWindowNum​

Causes a window to select (bring to front) itself if the event's infoInt field matches the window's number field; used to implement numbered window selection.

int cmListItemSelected​

Broadcast sent by a list viewer to its owner whenever the user selects an item in the list, allowing the owner to react to the new selection.

int cmScreenChanged​

Broadcast sent when the screen dimensions or mode have changed and views should redraw themselves.

int cmTimerExpired​

Broadcast sent when a timer expires, allowing views to perform periodic updates.

int cmRecordHistory​

Broadcast sent by a button to its owner when the button is pressed, causing any linked history object to record the current contents of the associated input line.

int cmGrabDefault​

Broadcast sent by a default-capable button when it gains focus, asking its owner to designate it as the current default button.

int cmReleaseDefault​

Broadcast sent by a default-capable button when it loses focus, asking its owner to remove its default-button designation.

int cmColorForegroundChanged​

Broadcast sent when the user selects a new foreground color in the color editor.

int cmColorBackgroundChanged​

Broadcast sent when the user selects a new background color in the color editor.

int cmColorSet​

Broadcast sent to apply the current color selection to the target palette entry.

int cmNewColorItem​

Broadcast sent when the user navigates to a new color item in the color group list.

int cmNewColorIndex​

Broadcast sent when the selected palette index changes in the color item list.

int cmSaveColorIndex​

Broadcast sent to persist the current palette index back to the color item list.

int cmFind​

Open the Find (text search) dialog.

int cmReplace​

Open the Replace (search and replace) dialog.

int cmSearchAgain​

Repeat the most recent search operation.

int cmOutlineItemSelected​

Broadcast sent by an outline viewer when the user selects an item in the outline tree.

int cmCharLeft​

Move the cursor one character to the left.

int cmCharRight​

Move the cursor one character to the right.

int cmWordLeft​

Move the cursor one word to the left.

int cmWordRight​

Move the cursor one word to the right.

int cmLineStart​

Move the cursor to the start of the current line.

int cmLineEnd​

Move the cursor to the end of the current line.

int cmLineUp​

Move the cursor up one line.

int cmLineDown​

Move the cursor down one line.

int cmPageUp​

Scroll the view up one page and move the cursor accordingly.

int cmPageDown​

Scroll the view down one page and move the cursor accordingly.

int cmTextStart​

Move the cursor to the very beginning of the text.

int cmTextEnd​

Move the cursor to the very end of the text.

int cmNewLine​

Insert a new line at the current cursor position.

int cmBackSpace​

Delete the character immediately before the cursor (Backspace).

int cmDelChar​

Delete the character at the cursor position (Delete).

int cmDelWord​

Delete from the cursor to the end of the current word.

int cmDelStart​

Delete from the cursor back to the start of the current line.

int cmDelEnd​

Delete from the cursor to the end of the current line.

int cmDelLine​

Delete the entire current line.

int cmInsMode​

Toggle between insert and overwrite mode.

int cmStartSelect​

Begin (or anchor) a keyboard selection at the current cursor position.

int cmHideSelect​

Collapse/hide the current selection without deleting it.

int cmIndentMode​

Toggle automatic indentation mode.

int cmUpdateTitle​

Request that the editor window update its title bar (e.g. to reflect modified state).

int cmSelectAll​

Select all text in the editor.

int cmDelWordLeft​

Delete from the cursor back to the start of the previous word.

int cmEncoding​

Change the character encoding of the document.

int cmFileFocused​

Broadcast sent by a file list box to its owner (TFileDialog) when the focused file entry changes, so that TFileInputLine and TFileInfoPane can refresh.

int cmFileDoubleClicked​

Broadcast sent by a file list box when the user double-clicks a file entry.

int cmFileOpen​

Returned by TFileDialog when the user presses the Open button.

int cmFileReplace​

Returned by TFileDialog when the user presses the Replace button.

int cmFileClear​

Returned by TFileDialog when the user presses the Clear button.

int cmFileInit​

Sent internally to initialise a file dialog after it has been constructed or restored from a stream.

int cmChangeDir​

Sent internally when the user confirms a directory change in the change-directory dialog.

int cmRevert​

Revert the current document to the last saved version on disk.