Class ViewFlags
public final class ViewFlags
View state, option, grow mode, drag mode, and other flag constants.
org.viktor44.jtvision.core.ViewFlags
Summary
Constructors
| Visibility | Signature |
|---|---|
| private | ViewFlags() |
Fields
| Modifiers | Field name | Type |
|---|---|---|
| public static final | sfVisible | int |
| public static final | sfCursorVis | int |
| public static final | sfCursorIns | int |
| public static final | sfShadow | int |
| public static final | sfActive | int |
| public static final | sfSelected | int |
| public static final | sfFocused | int |
| public static final | sfDragging | int |
| public static final | sfDisabled | int |
| public static final | sfModal | int |
| public static final | sfDefault | int |
| public static final | sfExposed | int |
| public static final | ofSelectable | int |
| public static final | ofTopSelect | int |
| public static final | ofFirstClick | int |
| public static final | ofFramed | int |
| public static final | ofPreProcess | int |
| public static final | ofPostProcess | int |
| public static final | ofBuffered | int |
| public static final | ofTileable | int |
| public static final | ofCenterX | int |
| public static final | ofCenterY | int |
| public static final | ofCentered | int |
| public static final | ofValidate | int |
| public static final | gfGrowLoX | int |
| public static final | gfGrowLoY | int |
| public static final | gfGrowHiX | int |
| public static final | gfGrowHiY | int |
| public static final | gfGrowAll | int |
| public static final | gfGrowRel | int |
| public static final | gfFixed | int |
| public static final | dmDragMove | int |
| public static final | dmDragGrow | int |
| public static final | dmDragGrowLeft | int |
| public static final | dmLimitLoX | int |
| public static final | dmLimitLoY | int |
| public static final | dmLimitHiX | int |
| public static final | dmLimitHiY | int |
| public static final | dmLimitAll | int |
| public static final | hcNoContext | int |
| public static final | hcDragging | int |
| public static final | sbLeftArrow | int |
| public static final | sbRightArrow | int |
| public static final | sbPageLeft | int |
| public static final | sbPageRight | int |
| public static final | sbUpArrow | int |
| public static final | sbDownArrow | int |
| public static final | sbPageUp | int |
| public static final | sbPageDown | int |
| public static final | sbIndicator | int |
| public static final | sbHorizontal | int |
| public static final | sbVertical | int |
| public static final | sbHandleKeyboard | int |
| public static final | wfMove | int |
| public static final | wfGrow | int |
| public static final | wfClose | int |
| public static final | wfZoom | int |
| public static final | noMenuBar | int |
| public static final | noDeskTop | int |
| public static final | noStatusLine | int |
| public static final | noBackground | int |
| public static final | noFrame | int |
| public static final | noViewer | int |
| public static final | noHistory | int |
| public static final | wnNoNumber | int |
| public static final | wpBlueWindow | int |
| public static final | wpCyanWindow | int |
| public static final | wpGrayWindow | int |
| public static final | bfNormal | int |
| public static final | bfDefault | int |
| public static final | bfLeftJust | int |
| public static final | bfBroadcast | int |
| public static final | bfGrabFocus | int |
| public static final | apColor | int |
| public static final | apBlackWhite | int |
| public static final | apMonochrome | int |
| public static final | dpBlueDialog | int |
| public static final | dpCyanDialog | int |
| public static final | dpGrayDialog | int |
| public static final | mfWarning | int |
| public static final | mfError | int |
| public static final | mfInformation | int |
| public static final | mfConfirmation | int |
| public static final | mfYesButton | int |
| public static final | mfNoButton | int |
| public static final | mfOKButton | int |
| public static final | mfCancelButton | int |
| public static final | mfYesNoCancel | int |
| public static final | mfOKCancel | int |
| public static final | fdOKButton | int |
| public static final | fdOpenButton | int |
| public static final | fdReplaceButton | int |
| public static final | fdClearButton | int |
| public static final | fdHelpButton | int |
| public static final | fdNoLoadDir | int |
| public static final | cdNormal | int |
| public static final | cdNoLoadDir | int |
| public static final | cdHelpButton | int |
Constructors
ViewFlags()
No method description provided
Fields
int sfVisible
The view is visible on its owner. Set by default; show() and hide() modify it.
int sfCursorVis
The view's cursor is visible. showCursor() and hideCursor() modify it.
int sfCursorIns
The cursor is a solid block insert cursor; when clear the cursor is the default underline.
int sfShadow
The view has a shadow displayed beneath it.
int sfActive
The view is the active window, or a subview within that active window.
int sfSelected
The view is the currently selected subview within its owner group.
int sfFocused
The view has the input focus — it is selected and on the focused chain from the Application object.
int sfDragging
The view is currently being dragged by the user.
int sfDisabled
The view is disabled and ignores all events sent to it.
int sfModal
The view is modal — it is the root of the active event tree until endModal() is called.
int sfDefault
The view is the default button in its group.
int sfExposed
The view is owned (directly or indirectly) by the Application object and therefore possibly visible on screen.
int ofSelectable
The view can be selected, for example by a mouse click.
int ofTopSelect
When selected, the view moves in front of all peer views (top-select behaviour).
int ofFirstClick
A mouse click that selects the view is also delivered to the view as a normal click event.
int ofFramed
A frame is drawn around the view.
int ofPreProcess
The view receives focused keyboard events before they are sent to the focused subview (pre-process phase).
int ofPostProcess
The view receives focused keyboard events after the focused subview if that subview did not consume them (post-process phase).
int ofBuffered
For group objects: allocate a cache buffer so the group can be redrawn without re-drawing every child.
int ofTileable
The desktop may tile or cascade this view; used only with window objects.
int ofCenterX
The view is centered on the X-axis of its owner when drawn.
int ofCenterY
The view is centered on the Y-axis of its owner when drawn.
int ofCentered
The view is centered both horizontally and vertically within its owner (ofCenterX | ofCenterY).
int ofValidate
valid() is called on the view before it loses focus, allowing it to reject the focus change.
int gfGrowLoX
The left edge of the view maintains a constant distance from the left edge of its owner as the owner resizes.
int gfGrowLoY
The top edge of the view maintains a constant distance from the top edge of its owner as the owner resizes.
int gfGrowHiX
The right edge of the view maintains a constant distance from the right edge of its owner as the owner resizes.
int gfGrowHiY
The bottom edge of the view maintains a constant distance from the bottom edge of its owner as the owner resizes.
int gfGrowAll
All four edges track their respective owner edges — the view moves with the lower-right corner of its owner (gfGrowLoX | gfGrowLoY | gfGrowHiX | gfGrowHiY).
int gfGrowRel
When used with window objects, the view changes size proportionally relative to the owner's size change.
int gfFixed
The view has a fixed size and does not resize when its owner resizes.
int dmDragMove
Dragging moves the view to a new position.
int dmDragGrow
Dragging resizes the view by moving its lower-right corner.
int dmDragGrowLeft
Dragging resizes the view by moving its left edge.
int dmLimitLoX
The view's left edge cannot be dragged outside the limits rectangle.
int dmLimitLoY
The view's top edge cannot be dragged outside the limits rectangle.
int dmLimitHiX
The view's right edge cannot be dragged outside the limits rectangle.
int dmLimitHiY
The view's bottom edge cannot be dragged outside the limits rectangle.
int dmLimitAll
No part of the view can be dragged outside the limits rectangle (dmLimitLoX | dmLimitLoY | dmLimitHiX | dmLimitHiY).
int hcNoContext
No help context is associated with the view.
int hcDragging
Help context returned by getHelpCtx() while the view is being dragged.
int sbLeftArrow
The left arrow of a horizontal scroll bar.
int sbRightArrow
The right arrow of a horizontal scroll bar.
int sbPageLeft
The left paging area (between the left arrow and the indicator) of a horizontal scroll bar.
int sbPageRight
The right paging area (between the indicator and the right arrow) of a horizontal scroll bar.
int sbUpArrow
The up arrow of a vertical scroll bar.
int sbDownArrow
The down arrow of a vertical scroll bar.
int sbPageUp
The upper paging area (between the up arrow and the indicator) of a vertical scroll bar.
int sbPageDown
The lower paging area (between the indicator and the down arrow) of a vertical scroll bar.
int sbIndicator
The position indicator (thumb) of a scroll bar.
int sbHorizontal
Create a horizontal scroll bar.
int sbVertical
Create a vertical scroll bar.
int sbHandleKeyboard
The scroll bar responds to keyboard arrow and page keys in addition to mouse input.
int wfMove
The user can move the window by dragging its title bar.
int wfGrow
The user can resize the window by dragging its lower-right corner.
int wfClose
The window frame contains a close icon that dismisses the window on click.
int wfZoom
The window frame contains a zoom icon that toggles the window between normal and maximised size.
int noMenuBar
Suppress the creation of the default menu bar.
int noDeskTop
Suppress the creation of the default desktop.
int noStatusLine
Suppress the creation of the default status line.
int noBackground
Suppress the creation of the default background view.
int noFrame
Suppress the creation of the default window frame.
int noViewer
Suppress the creation of the default viewer.
int noHistory
Suppress the creation of the default history list.
int wnNoNumber
Passed to the TWindow constructor to indicate that no window number should be shown in the title bar.
int wpBlueWindow
Window drawn with white text on a blue background.
int wpCyanWindow
Window drawn with blue text on a cyan background.
int wpGrayWindow
Window drawn with black text on a gray background.
int bfNormal
Normal non-default button; no special behaviour.
int bfDefault
The button is the default button in its group and is activated by the Enter key.
int bfLeftJust
The button label is left-aligned; when clear the label is centred.
int bfBroadcast
When pressed, the button sends a broadcast message to its owner rather than a command event.
int bfGrabFocus
The button takes input focus when clicked with the mouse.
int apColor
Use the full-colour palette for colour screen display.
int apBlackWhite
Use the black-and-white palette for LCD or monochrome-capable colour screens.
int apMonochrome
Use the monochrome palette for true monochrome screens.
int dpBlueDialog
Dialog box drawn with a blue background.
int dpCyanDialog
Dialog box drawn with a cyan background.
int dpGrayDialog
Dialog box drawn with a gray background.
int mfWarning
Display a Warning message box (default type).
int mfError
Display an Error message box.
int mfInformation
Display an Information message box.
int mfConfirmation
Display a Confirmation message box.
int mfYesButton
Include a Yes button in the message box.
int mfNoButton
Include a No button in the message box.
int mfOKButton
Include an OK button in the message box.