public class BorderedPanelGuiImpl extends BorderedPanel<GuiOutputManager>
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Runnable |
customDraw
Custom draw runnable.
|
private GuiColorResolver |
gc
Color resolver.
|
private GuiDriver<?,?> |
gd
Screen driver
|
private WidgetId |
id
ID is needed in case panel is registered as resizable for example.
|
private boolean |
is3DBorder
Additional 3D styled border flag.
|
private java.lang.Runnable |
optionalDraw
Optional draw runnable.
|
borderlisteners, location, mousePtr, nativeInsets, physicalLocation| Constructor and Description |
|---|
BorderedPanelGuiImpl()
Creates new instance with no border and no layout manager.
|
BorderedPanelGuiImpl(Border<GuiOutputManager> border)
Creates new instance with the specified border.
|
BorderedPanelGuiImpl(LayoutManager<GuiOutputManager> mgr,
Border<GuiOutputManager> border)
Creates new instance with the specified layout manager and border.
|
| Modifier and Type | Method and Description |
|---|---|
void |
draw()
Draw widget.
|
void |
drawPanel()
Drawing worker method.
|
WidgetId |
getId()
Widget ID.
|
private void |
init()
Instance initializer.
|
boolean |
is3DBorder()
Checks if this widget need to draw additional 3D style border elements.
|
boolean |
isRMBEntrySupported()
Check if this widget gains ENTRY event when right/middle mouse button is clicked.
|
void |
set3DBorder(boolean is3DBorder)
Sets the new value for 3D style flag.
|
void |
setColorResolver(GuiColorResolver resolver)
Sets a color resolver.
|
void |
setCustomDraw(java.lang.Runnable customDraw)
Sets custom draw routine.
|
void |
setId(WidgetId id)
Sets widget ID for this widget.
|
void |
setOptionalDraw(java.lang.Runnable optionalDraw)
Sets optional draw routine.
|
border, insets, isTransparent, setBorder, setTransparentadd, add, add, addContainerStateListener, addDirectly, belongsTo, checkWidget, childrenLocation, clipping, clipRectangle, copyState, currentFocus, currentFocus, cycleFocus, defaultFocus, deregisterSelectedWidget, destroy, detach, dimension, doLayout, dumpCurrentWidgets, dumpWidgets, endSizeChange, findMouseSource, firstFocus, focus, focusTraversable, focusWorker, formatDump, get, getAllSelectedWidgets, getClipRect, getEffectiveScrollableSize, getFocusInt, getIgnoreFocus, getLayout, getScrollableSize, getTabItemList, hasFocusable, height, lastFocus, minimumSize, moveAfterTabItem, moveBeforeTabItem, moveToBottom, moveToBottomInClass, moveToTop, moveToTopInClass, moveToZpos, nextFocus, normalizeZOrder, onWidgetAdded, onWidgetRemoved, paintOnTop, parentOf, prepareWidgets, prevFocus, processKeyEvent, reflectAncestorChange, reflectLocationChanged, registerSelectedWidget, remove, removeContainerStateListener, repaint, replace, requestFocus, requestFocus, setFocus, setFocusInt, setHeight, setIgnoreFocus, setInsets, setLayout, setPhysicalDimensionInt, setSize, setSize, setTabItemList, setWidth, startSizeChange, swap, 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, getLoadedMousePointer, getMenuMouse, getMouseActions, getMousePosition, getPortableMouseEventCoordinates, getSelectedText, getState, getTextHeight, getTextHeightNative, getTextHeightNative, getTextWidth, getTextWidth, getTextWidthNative, getTextWidthNative, getVisiblePart, getZOrderClass, hasFocus, hasTooltip, hidden, hide, highlighted, ignoreAction, initialHeight, initialWidth, isCurrent, isDirectManipulationActive, isDirectManipulationActiveOrInUIB, isDirectManipulationCapable, isDirectManipulationRequired, isDisplayed, isEnabled, isFocusable, isHeader, isMouseDrag, isRealized, isRepaintDisabled, 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, reflectSizeChanged, refresh, registerWidgetListener, repaint, repaint, requestSync, resetBitmap, resizeTo, resolveFont, resolvePopupMenuId, resolveTitleFont, screen, screenDimension, screenHeight, screenLocation, screenPhysicalLocation, screenWidth, setBitmap, setCachedScreenLocation, setCachedScreenPhysicalLocation, setDirectManipulationActive, setEnabled, setHidden, setHighlighted, setLocation, setLocation, setMousePointer, setMousePointer, setParent, setPhysicalLocation, setSensitiveForUIB, setState, setVisible, setWindow, show, showPopupMenu, supportsCustomMousePointer, sync, topLevelWindow, toString, translate, triggerLocationChanged, unregisterWidgetListener, updateSystemParent, widgetRealized, windowclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitwidgetsAsListacceptsEscAsAnyKey, acceptTrigger, addFocusListener, addKeyListener, ancestor, ancestorId, bounds, canMovetoTop, clearWidget, completeTrigger, config, defaultMousePtr, displayPhysicalLocation, drawCaret, enclosingFrame, enforceDefaultMousePtr, forceCursorOnFocus, forceVisibility, getActualBounds, getCustomMousePointer, getEffectiveMousePointer, getIdForTrigger, getLegacyWidget, getLoadedMousePointer, getMenuMouse, getMouseActions, getMousePosition, getSelectedText, getState, getTriggerWidget, getTriggerWidget, getVisiblePart, getZOrderClass, hasFocus, hasFocus, hasTooltip, hidden, hide, highlighted, ignoreEnable, initialHeight, initialWidth, isCurrent, isCurrent, isDirectManipulable, isDirectManipulationActive, isDirectManipulationActiveOrInUIB, isDisplayed, isDroppable, isEnabled, isFocusable, isHeader, isInitialValueLayout, isLegacyFocus, isProcessProgressEvent, isRealized, isRepaintDisabled, 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, registerWidgetListener, repaint, repaint, requestFocus, requestSync, resizeTo, resolvePopupMenuId, screen, screenLocation, screenPhysicalLocation, setDirectManipulationActive, setEnabled, setHidden, setHighlighted, setLocation, setLocation, setMousePointer, setMousePointer, setParent, setPhysicalLocation, setSensitiveForUIB, setState, setVisible, setWindow, show, startTrigger, supportsCustomMousePointer, systemFocusGrabbed, topLevelWindow, unregisterWidgetListener, validateDisplayValue, windowprivate GuiDriver<?,?> gd
private GuiColorResolver gc
private java.lang.Runnable customDraw
private java.lang.Runnable optionalDraw
private boolean is3DBorder
private WidgetId id
public BorderedPanelGuiImpl()
public BorderedPanelGuiImpl(Border<GuiOutputManager> border)
border - reference to the border implementation,
may be nullpublic BorderedPanelGuiImpl(LayoutManager<GuiOutputManager> mgr, Border<GuiOutputManager> border)
mgr - reference to the layout manager, may be nullborder - reference to the border implementation,
may be nullpublic void setColorResolver(GuiColorResolver resolver)
GuiColorResolver.bgColor
which is used as the background color for this panel. If no resolver
is given, the color SysColor.COLOR_WINDOW will be used by default.resolver - color revolver, may be nullpublic void setCustomDraw(java.lang.Runnable customDraw)
draw() method forwards the call to the
parent's draw method. When custom draw routine is registered,
it is executed instead of the parent.customDraw - custom draw routine, see abovepublic void setOptionalDraw(java.lang.Runnable optionalDraw)
optionalDraw - optional draw routine, see abovepublic boolean isRMBEntrySupported()
isRMBEntrySupported in interface Widget<GuiOutputManager>isRMBEntrySupported in class AbstractWidget<GuiOutputManager>true if this widget gains ENTRY event
when right/middle mouse button is clicked.public boolean is3DBorder()
true if additional painting is required, false otherwise.public void set3DBorder(boolean is3DBorder)
is3DBorder - true if additional painting is required, false otherwise.public void draw()
draw in interface Widget<GuiOutputManager>draw in class AbstractContainer<GuiOutputManager>public void drawPanel()
drawPanel in class BorderedPanel<GuiOutputManager>public void setId(WidgetId id)
The setter allows to selectively assign an ID to borders that do need it. For example a mouse-sensitive border around main window requires an ID to be able to handle mouse events.
id - A widget id.public WidgetId getId()
getId in interface Widget<GuiOutputManager>getId in class AbstractWidget<GuiOutputManager>private void init()