public class BrowseConfirmPanel extends AbstractContainer<GuiOutputManager>
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
APPLY_TEXT
Text of the Apply button.
|
private ButtonGuiImpl |
applyButton
"Apply" button text.
|
private BrowseGuiImpl |
browse
Parent browse.
|
private boolean |
filtering
true if this panel confirms filtering. |
private static java.lang.String |
FILTERING_TEXT
Text of the "filtering changed" message.
|
private GuiDriver |
gd
GUI driver.
|
private static int |
PADDING_PX
Padding around buttons.
|
private BorderedPanelGuiImpl |
panel
Background panel.
|
private static int |
PANEL_BG_COLOR
Background color of the panel.
|
private static ColorRgb |
PANEL_FG_COLOR
Panel text color.
|
private static java.lang.String |
RESET_TEXT
Text of the Reset button.
|
private ButtonGuiImpl |
resetButton
"Reset" button text.
|
private int |
secondLineOffset
Centering offset for the second line.
|
private boolean |
sorting
true if this panel confirms sorting. |
private static java.lang.String |
SORTING_FILTERING_TEXT1
Text of the "sorting and filtering changed" message, part 1.
|
private static java.lang.String |
SORTING_FILTERING_TEXT2
Text of the "sorting and filtering changed" message, part 2.
|
private static java.lang.String |
SORTING_TEXT
Text of the "sorting changed" message.
|
private int |
textHeight
The height of the text.
|
location, mousePtr, nativeInsets, physicalLocation
Constructor and Description |
---|
BrowseConfirmPanel(BrowseGuiImpl browse)
Creates the widget.
|
Modifier and Type | Method and Description |
---|---|
private ButtonGuiImpl |
createButton(java.lang.String text)
Create a button with the given text.
|
void |
doLayout()
Performs initial layout of the panel.
|
void |
draw()
Draw the widget.
|
private void |
handleButtonClick(boolean apply)
Handles a click on Apply or Reset button.
|
(package private) boolean |
isSorting()
Returns
true if it is a panel to confirm sorting. |
(package private) void |
setPanelType(boolean addSorting,
boolean addFiltering)
Set confirm panel type: sorting / filtering / filtering and sorting.
|
(package private) void |
updateLocation()
Update panel physical location (may be caused by changes in the layout of parent browse).
|
add, add, add, addContainerStateListener, addDirectly, belongsTo, checkWidget, childrenLocation, clipping, clipRectangle, copyState, currentFocus, currentFocus, cycleFocus, defaultFocus, deregisterSelectedWidget, destroy, detach, dimension, dumpCurrentWidgets, dumpWidgets, endSizeChange, findMouseSource, firstFocus, focus, focusTraversable, focusWorker, formatDump, get, getAllSelectedWidgets, getClipRect, getEffectiveScrollableSize, getFocusInt, getIgnoreFocus, getLayout, getScrollableSize, getTabItemList, hasFocusable, height, insets, lastFocus, minimumSize, moveAfterTabItem, moveBeforeTabItem, moveToBottom, moveToBottomInClass, moveToTop, moveToTopInClass, moveToZpos, nextFocus, normalizeZOrder, onWidgetAdded, onWidgetRemoved, paintOnTop, parentOf, prepareWidgets, prevFocus, processKeyEvent, reflectAncestorChange, reflectLocationChange, registerSelectedWidget, remove, removeContainerStateListener, repaint, replace, requestFocus, requestFocus, setFocus, setFocusInt, setHeight, setIgnoreFocus, setInsets, setLayout, setSize, setSize, setTabItemList, setWidth, startSizeChange, triggerContainerStateRedrawEnabled, unrealize, updateSizeWorker, widgets, widgetsAsList, widgetStateChanged, width
_setHidden, _setVisible, activateDirectManipulation, addFocusListener, addKeyListener, afterConfigUpdateBase, ancestor, ancestorId, autoResize, bounds, clear, clearWidget, clipRectangle, clipRectangle, clipWith, config, copyColors, createMouseHoverAction, deactivateDirectManipulation, debug, disable, disableTooltip, displayPhysicalLocation, drawCaret, enable, enableTooltip, enclosingFrame, forceCursorOnFocus, forceVisibility, getActualBounds, getAndResetBitmap, getAndSetBitmap, getBitmapCopy, getCachedScreenLocation, getCachedScreenPhysicalLocation, getCustomMousePointer, getDefaultEvent, getEffectiveMousePointer, getId, getLoadedMousePointer, getMenuMouse, getMouseActions, getMousePosition, getPortableMouseEventCoordinates, getSelectedText, getState, getTextHeight, getTextHeightNative, getTextHeightNative, getTextWidth, getTextWidth, getTextWidthNative, getTextWidthNative, getVisiblePart, getZOrderClass, hasFocus, hidden, hide, highlighted, ignoreAction, initialHeight, initialWidth, isCurrent, isDirectManipulationActive, isDirectManipulationCapable, isDirectManipulationRequired, isDisplayed, isEnabled, isFocusable, isHeader, isMouseDrag, isRealized, isRepaintDisabled, isRMBEntrySupported, isScreenLocationCached, isTabStop, isThreeD, isTotallyObscured, isVisible, isVisible, location, manageSystemActions, mouseActions, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, moveToBottom, moveToTop, name, navigable, oleDoDrop, oleDrag, oleDragging, oleStartDragging, onOleDragging, onOleDropEnd, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalBounds, physicalDimension, physicalLocation, postprocessConfig, prepParentLocation, preventFocusWhenMouseDownEventDefined, processDirectManipulationEvent, processEvent, processFocusEvent, processKeyEventForSelectableWidget, processKeyListeners, processMnemonic, processMnemonicImpl, processSystemKey, raiseLegacyMouseEvents, refresh, registerWidgetStateListener, repaint, repaint, requestSync, resetBitmap, resizeTo, resolveFont, resolvePopupMenuId, resolveTitleFont, screen, screenDimension, screenHeight, screenLocation, screenPhysicalLocation, screenWidth, setBitmap, setCachedScreenLocation, setCachedScreenPhysicalLocation, setEnabled, setHidden, setHighlighted, setLocation, setLocation, setMousePointer, setParent, setPhysicalLocation, setState, setVisible, show, showPopupMenu, supportsCustomMousePointer, sync, topLevelWindow, toString, translate, unregisterWidgetStateListener, window
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
widgetsAsList
addFocusListener, addKeyListener, ancestor, ancestorId, bounds, canMovetoTop, clearWidget, config, defaultMousePtr, displayPhysicalLocation, drawCaret, enclosingFrame, enforceDefaultMousePtr, forceCursorOnFocus, forceVisibility, getActualBounds, getCustomMousePointer, getEffectiveMousePointer, getId, getLegacyWidget, getLoadedMousePointer, getMenuMouse, getMouseActions, getMousePosition, getSelectedText, getState, getTriggerWidget, getTriggerWidget, getVisiblePart, getZOrderClass, hasFocus, hasFocus, hidden, hide, highlighted, ignoreEnable, initialHeight, initialWidth, isCurrent, isDirectManipulable, isDirectManipulationActive, isDisplayed, isDroppable, isEnabled, isFocusable, isHeader, isInitialValueLayout, isLegacyFocus, isRealized, isRepaintDisabled, isRMBEntrySupported, isTabStop, isThreeD, isTotallyObscured, isVisible, isVisible, location, maySwitchFocus, moveToBottom, moveToTop, name, navigable, oleDrag, parent, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalBounds, physicalDimension, physicalLocation, postprocessConfig, preventFocusWhenMouseDownEventDefined, processDirectManipulationEvent, processEvent, processFocusEvent, processKeyListeners, processMnemonic, raiseLegacyMouseEvents, refreshWidget, registerWidgetStateListener, repaint, repaint, requestFocus, requestSync, resizeTo, resolvePopupMenuId, screen, screenLocation, screenPhysicalLocation, setEnabled, setHidden, setHighlighted, setLocation, setLocation, setMousePointer, setParent, setPhysicalLocation, setState, setVisible, show, supportsCustomMousePointer, systemFocusGrabbed, topLevelWindow, unregisterWidgetStateListener, validateDisplayValue, window
private static final int PADDING_PX
private static final java.lang.String APPLY_TEXT
private static final java.lang.String RESET_TEXT
private static final java.lang.String SORTING_TEXT
private static final java.lang.String FILTERING_TEXT
private static final java.lang.String SORTING_FILTERING_TEXT1
private static final java.lang.String SORTING_FILTERING_TEXT2
private static final ColorRgb PANEL_FG_COLOR
private static final int PANEL_BG_COLOR
private final ButtonGuiImpl applyButton
private final ButtonGuiImpl resetButton
private final BorderedPanelGuiImpl panel
private final int textHeight
private int secondLineOffset
private boolean sorting
true
if this panel confirms sorting.private boolean filtering
true
if this panel confirms filtering.private final BrowseGuiImpl browse
private final GuiDriver gd
BrowseConfirmPanel(BrowseGuiImpl browse)
doLayout()
to perform actual panel layout.browse
- Parent browse.public void doLayout()
doLayout
in interface Container<GuiOutputManager>
doLayout
in class AbstractContainer<GuiOutputManager>
public void draw()
draw
in interface Widget<GuiOutputManager>
draw
in class AbstractContainer<GuiOutputManager>
boolean isSorting()
true
if it is a panel to confirm sorting.void setPanelType(boolean addSorting, boolean addFiltering)
addSorting
- Switches panel type in the following ways: "<no type>" -> "sorting" or
"filtering" -> "filtering and sorting".addFiltering
- Switches panel type in the following ways: "<no type>" -> "filtering" or
"sorting" -> "filtering and sorting".void updateLocation()
private ButtonGuiImpl createButton(java.lang.String text)
text
- Button text.private void handleButtonClick(boolean apply)
apply
- true
if Apply button was clicked. false
if Reset button was
clicked.