public class BrowseColumnGuiImpl extends BrowseColumn implements Hoverable
| Modifier and Type | Class and Description |
|---|---|
static class |
BrowseColumnGuiImpl.ResizeArea
Enumeration for different resize areas.
|
| Modifier and Type | Field and Description |
|---|---|
private BrowseGuiImpl |
browse
Parent browse.
|
private CoordinatesConversion |
cc
Coordinates conversion.
|
private FontDetails |
cellsFont
Column font.
|
private java.lang.String |
columnFilterDataType
For enhanced filtering: data type used in column filter.
|
private java.util.Map<java.lang.String,java.lang.String> |
comboItemsCache
For combo-box columns: cache of "item value" -> "item description" elements, used in
column rendering.
|
private BrowseColumnGuiImpl.ResizeArea |
currentResizeArea
Indicates the resize area over which the mouse pointer is hovering now.
|
(package private) static int |
FILTER_ENTRY_PADDING_BOTTOM
Bottom padding for column filter entry fields.
|
private static int |
FILTER_ENTRY_PADDING_SIDE
Side padding for column filter entry fields.
|
private BrowseFilterEntryField |
filterEntry
The column filter entry field for this column.
|
static int |
GAP_BETWEEN_SORT_ARROW_AND_NUMBER
Gap between sort arrow and sort number.
|
private GuiDriver |
gd
GUI driver.
|
private java.lang.Boolean |
implicitWidth
true if the column has implicit width. |
private int |
initialDragRow
Initial row selected during mouse drag.
|
private boolean |
isDragged
true if the column is being dragged. |
private boolean |
isPressed
If column is pressed (column label is pressed if ALLOW-COLUMN-SEARCHING is
true). |
private boolean |
isResized
true if the column is being resized. |
private boolean |
isRowFocusing
Flag to indicate if a row was pressed and is currently dragged.
|
static int |
LABEL_PRESSED_OFFSET
Offset of the label text if the column is in pressed state.
|
static int |
LABEL_SHADOW_THICKNESS
Thickness of the shadow inside the column header.
|
private FontDetails |
labelFont
Label font.
|
private java.lang.String[] |
labelLines
The lines of which the label consist.
|
private boolean |
labelPressed
If column label is pressed this becoming true when owning window has 3-d falg on.
|
private int |
lastDragRow
Last row selected during mouse drag.
|
private NativePoint |
lastMousePosition
Last mouse position reported during mouse drag.
|
private static CentralLogger |
LOG
Logger.
|
private boolean |
markersColumn
If it is the markers (leftmost) column.
|
private static int |
PADDING
Difference between data width and actual column width (in pixels).
|
(package private) static int |
RESET_TO_UNK_BUTTON_PADDING
Padding for the "reset to unknown" button for column filter entries.
|
static int |
SORT_AREA_LEFT_CLIP
Left clipping for sort area (sort arrow and number).
|
static int |
SORT_AREA_RIGHT_CLIP
Right clipping for sort area (sort arrow and number).
|
static int |
SORT_ARROW_MAX_LEFT_OFFSET
Maximum offset between sort arrow and label text.
|
private boolean |
startedPress
true if user pressed down mouse button on a column label if
ALLOW-COLUMN-SEARCHING is true. |
private int |
visibleColumnIndex
0-based index of the column among the visible columns.
|
private double |
width
Column width, in chars.
|
configlisteners, location, mousePtr, nativeInsets, physicalLocation| Constructor and Description |
|---|
BrowseColumnGuiImpl(boolean markersColumn)
Constructor.
|
BrowseColumnGuiImpl(WidgetId id,
BrowseColumnConfig cfg)
Constructor.
|
BrowseColumnGuiImpl(WidgetId id,
BrowseColumnConfig cfg,
boolean markersColumn)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterConfigUpdate(BrowseColumnConfig beforeUpdate)
The method is called after the configuration associated with
the implementor changes.
|
int |
calcColumnWidth()
Calculate column width.
|
int |
calcColumnWidth(boolean ignoreSaved)
Calculate column width.
|
(package private) int |
calcDataWidth(boolean ignoreSaved)
Calculate width of the data part of the column.
|
Dimension |
dimension()
Get widget dimension.
|
void |
draw()
Draw the widget.
|
boolean |
drawnAsNonSortable()
Returns
true if this column should be drawn as non-sortable (the label area is
marked with red). |
NativeRectangle |
getActualBounds()
Get the column actual bounds.
|
BrowseGuiImpl |
getBrowse()
Obtain the
BrowseGuiImpl this column is part of. |
FontDetails |
getCellsFont()
Obtain the current
FontDetails for this column. |
NativePoint |
getCellTextClipPoint(int viewportIndex)
Get clipping point for a text inside a cell relatively to the column top.
|
NativeRectangle |
getCellTextClipRectangle(NativePoint point)
Get clipping rectangle for a text inside a cell.
|
int |
getCellTextTopOffset()
Get top offset for positioning text inside a cell.
|
private java.lang.String |
getColumnFilterDataType()
For enhanced filtering: returns data type used in column filter.
|
int |
getColumnLabelTextWidth()
Get width of the label text, in pixels.
|
int |
getColumnPadding()
Get column padding, i.e.
|
(package private) java.lang.String |
getComboBoxCellText(java.lang.String cellText)
Get text of the cell for this combo-box column.
|
private int |
getFilterFillInHeight()
Get the height of the column filter entry field, in pixels.
|
private int |
getFilterFillInWidth()
Get the width of the column filter entry field, in pixels.
|
(package private) BaseDataType |
getFilteringEntryValue()
Get the value of the column filter for this column or
null if the column filter
entry field is not displayed. |
int |
getLabelAreaWidth()
Get width of the column header, starting from the left column header border (inclusive) and
ending with the right column header border (exclusive).
|
FontDetails |
getLabelFont()
Obtain the current
FontDetails of this label. |
java.lang.String[] |
getLabelLines()
Get the array of labels for this column.
|
NativePoint |
getLabelTextClipPoint()
Get clipping point for a text inside a label.
|
NativeRectangle |
getLabelTextClipRectangle(NativePoint clipPoint)
Get clipping rectangle for a text inside a label.
|
int |
getLabelTextTopOffset()
Get top offset for positioning text inside a label.
|
java.lang.String |
getMousePointerImpl()
Get the MOUSE-POINTER attribute
|
private int |
getResetToUnknownButtonSize()
Get the size (width or height) of the "reset to unknown" button linked to the column filter
entry field, in pixels.
|
private int |
getResetToUnknownButtonX(FillInConfig filterFillInConfig)
Get the horizontal offset of the "reset to unknown" button linked to the column filter
entry field, in pixels.
|
int |
getSortAreaWidth()
Get width of the sort area (sort arrow and number), in pixels.
|
int |
getVisibleColumnIndex()
Index of the browse column in the set of visible columns.
|
private void |
handleDragTimer()
Handles tick of a timer which is started on mouse drag in order to perform row scrolling if the mouse is
above or below the browse.
|
private void |
handleRowFocus(int row)
Handle the case when the mouse is dragged over a row.
|
private boolean |
hasLeftResizeArea()
Determines if this column has left resize area (see
BrowseColumnGuiImpl.ResizeArea for more
information). |
private boolean |
hasRightResizeArea()
Determines if this column has right resize area (see
BrowseColumnGuiImpl.ResizeArea for more
information). |
(package private) void |
hideFilteringEntry()
Hide and destroy the column filter entry field.
|
void |
init(BrowseGuiImpl browse,
int leftOffset,
int visibleColumnIndex)
Initialize the widget.
|
(package private) void |
initEditorConfig(BaseConfig cfg)
Initialize editor widget config.
|
void |
initMarkersColumn(BrowseGuiImpl browse)
Initialize the markers (leftmost) column.
|
boolean |
isDrawnAsPressed()
Returns
true if the column is visually in pressed state. |
boolean |
isFirstColumn()
Returns
true if it is the first column (not including markers column). |
boolean |
isHeaderArea(NativePoint point)
Returns
true if the given point is inside the column header. |
(package private) boolean |
isInToggleBoxArea(java.awt.event.MouseEvent e)
Determines if the mouse event happened over the toggle box image area in the current row in
this column.
|
boolean |
isLabelPressed()
Returns
true if the column label must visually be in a pressed state. |
boolean |
isLastColumn()
Returns
true if it is the last column (not including markers column). |
boolean |
isLastLockedColumn()
Returns
true if it is the last column if the set of locked columns (not
including markers column). |
boolean |
isMarkersColumn()
Test whether this is a marker column.
|
boolean |
isVisible()
Check if the column is visible via its parent view port.
|
boolean |
manageSystemActions()
Check if the current widget can manage non-global system actions on its own, and not via the
enclosing event loop.
|
protected int[] |
mouseActions()
Sub-classes will override this to return a list of mouse actions on which the widget
responds.
|
void |
mouseDragged(java.awt.event.MouseEvent e)
Notification of a mouse dragged event occurred for this widget.
|
void |
mouseEntered(java.awt.event.MouseEvent e)
Notification of a mouse entered event occurred for this widget.
|
void |
mouseMoved(java.awt.event.MouseEvent e)
Notification of a mouse moved event occurred for this widget.
|
void |
mousePressed(java.awt.event.MouseEvent e)
Notification of a mouse pressed event occurred for this widget.
|
void |
mouseReleased(java.awt.event.MouseEvent e)
Notification of a mouse released event occurred for this widget.
|
void |
mouseWheelMoved(java.awt.event.MouseWheelEvent e)
Notification of a mouse wheel moved event occurred for this widget.
|
void |
processDirectManipulationEvent(DirectManipulationEvent event)
Process direct manipulation event.
|
void |
processSystemKey(KeyInput key)
Process the action associated with the given key in an independent drawing bracket.
|
(package private) void |
resetFilteringEntry()
Reset the value of the column filter entry field to "unknown value".
|
(package private) void |
resolveFonts()
Resolve browse column fonts.
|
(package private) void |
saveFilterBackupValue()
Run
BrowseFilterEntryField.saveBackupValue() for the linked filter entry field. |
void |
setMousePointerName(java.lang.String name)
Set the MOUSE-POINTER attribute
|
void |
setWidth(double width)
Set column width and update WIDTH attribute accordingly.
|
(package private) void |
showFilteringEntry()
Create and show the column filter entry field.
|
Menu |
showPopupMenu(java.awt.event.MouseEvent e,
java.lang.Runnable dismissHandler)
The method shows the popup menu for this widget.
|
private void |
startSearch()
Raise START-SEARCH event for the case of normal processing or process enhanced sorting if
it is enabled.
|
boolean |
supportsCustomMousePointer()
Check if the widget supports LOAD-MOUSE-POINTER() method
|
(package private) void |
updateFilterWidth()
Update the width of the column filter entry field and poistion of the linked "reset to
unknown" button.
|
(package private) void |
updateImplicitColumnWidth()
If the column has an implicit width, recalculate it according to the new column font.
|
(package private) void |
updateLabel()
Update the label (it should be parsed to the consisting lines).
|
Window |
window()
Get ancestor Window for this widget.
|
acceptTrigger, completeTrigger, config, getText, getValue, height, hidden, initialize, isFocusable, isModified, minimumSize, onFocusGained, onFocusLost, processEvent, setBrowse, setValue, setValue, startTrigger, widthadd, add, add, addContainerStateListener, addDirectly, belongsTo, checkWidget, childrenLocation, clipping, clipRectangle, copyState, currentFocus, currentFocus, cycleFocus, defaultFocus, deregisterSelectedWidget, destroy, detach, doLayout, dumpCurrentWidgets, dumpWidgets, endSizeChange, findMouseSource, firstFocus, focus, focusTraversable, focusWorker, formatDump, get, getAllSelectedWidgets, getClipRect, getEffectiveScrollableSize, getFocusInt, getIgnoreFocus, getLayout, getScrollableSize, getTabItemList, hasFocusable, insets, lastFocus, 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, startSizeChange, swap, triggerContainerStateRedrawEnabled, unrealize, updateSizeWorker, widgets, widgetsAsList, widgetStateChanged_setHidden, _setVisible, activateDirectManipulation, addFocusListener, addKeyListener, afterConfigUpdateBase, ancestor, ancestorId, autoResize, bounds, clear, clearWidget, clipRectangle, clipRectangle, clipWith, copyColors, createMouseHoverAction, deactivateDirectManipulation, debug, disable, disableTooltip, displayPhysicalLocation, drawCaret, enable, enableTooltip, enclosingFrame, forceCursorOnFocus, forceVisibility, 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, hasTooltip, hide, highlighted, ignoreAction, initialHeight, initialWidth, isCurrent, isDirectManipulationActive, isDirectManipulationActiveOrInUIB, isDirectManipulationCapable, isDirectManipulationRequired, isDisplayed, isEnabled, isHeader, isMouseDrag, isRealized, isRepaintDisabled, isRMBEntrySupported, isScreenLocationCached, isTabStop, isThreeD, isTotallyObscured, isVisible, location, mouseClicked, mouseExited, moveToBottom, moveToTop, name, navigable, oleDoDrop, oleDrag, oleDragging, oleStartDragging, onOleDragging, onOleDropEnd, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalBounds, physicalDimension, physicalLocation, postprocessConfig, prepParentLocation, preventFocusWhenMouseDownEventDefined, processFocusEvent, processKeyEventForSelectableWidget, processKeyListeners, processMnemonic, processMnemonicImpl, 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, sync, topLevelWindow, toString, translate, triggerLocationChanged, unregisterWidgetListener, updateSystemParent, widgetRealizedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChangedValuewidgetsAsListacceptsEscAsAnyKey, addFocusListener, addKeyListener, ancestor, ancestorId, bounds, canMovetoTop, clearWidget, defaultMousePtr, displayPhysicalLocation, drawCaret, enclosingFrame, enforceDefaultMousePtr, forceCursorOnFocus, forceVisibility, getCustomMousePointer, getEffectiveMousePointer, getId, getIdForTrigger, getLegacyWidget, getLoadedMousePointer, getMenuMouse, getMouseActions, getMousePosition, getSelectedText, getState, getTriggerWidget, getTriggerWidget, getVisiblePart, getZOrderClass, hasFocus, hasFocus, hasTooltip, hide, highlighted, ignoreEnable, initialHeight, initialWidth, isCurrent, isCurrent, isDirectManipulable, isDirectManipulationActive, isDirectManipulationActiveOrInUIB, isDisplayed, isDroppable, isEnabled, isHeader, isInitialValueLayout, isLegacyFocus, isProcessProgressEvent, isRealized, isRepaintDisabled, isRMBEntrySupported, isTabStop, isThreeD, isTotallyObscured, isVisible, location, maySwitchFocus, moveToBottom, moveToTop, name, navigable, oleDrag, parent, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalBounds, physicalDimension, physicalLocation, postprocessConfig, preventFocusWhenMouseDownEventDefined, 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, systemFocusGrabbed, topLevelWindow, unregisterWidgetListener, validateDisplayValuepublic static final int LABEL_PRESSED_OFFSET
public static final int LABEL_SHADOW_THICKNESS
public static final int SORT_ARROW_MAX_LEFT_OFFSET
public static final int SORT_AREA_LEFT_CLIP
public static final int SORT_AREA_RIGHT_CLIP
public static final int GAP_BETWEEN_SORT_ARROW_AND_NUMBER
private static final int PADDING
static final int RESET_TO_UNK_BUTTON_PADDING
static final int FILTER_ENTRY_PADDING_BOTTOM
private static final int FILTER_ENTRY_PADDING_SIDE
private static final CentralLogger LOG
private GuiDriver gd
private BrowseGuiImpl browse
private FontDetails labelFont
private FontDetails cellsFont
private CoordinatesConversion cc
private double width
private int visibleColumnIndex
private final boolean markersColumn
private java.lang.String[] labelLines
private boolean isDragged
true if the column is being dragged.private boolean isResized
true if the column is being resized.private boolean startedPress
true if user pressed down mouse button on a column label if
ALLOW-COLUMN-SEARCHING is true.private boolean isPressed
true).private boolean isRowFocusing
private BrowseColumnGuiImpl.ResizeArea currentResizeArea
BrowseColumnGuiImpl.ResizeArea for more information. null if the
mouse pointer is not hovering over a resize area.private boolean labelPressed
private java.lang.Boolean implicitWidth
true if the column has implicit width. false if the column has
explicitly specified width.private BrowseFilterEntryField filterEntry
private java.util.Map<java.lang.String,java.lang.String> comboItemsCache
private java.lang.String columnFilterDataType
DB-FILTER-FIELD-MAPPING is set for this column. In this case it corresponds data type of
the mapped field.private NativePoint lastMousePosition
private int initialDragRow
private int lastDragRow
public BrowseColumnGuiImpl(boolean markersColumn)
markersColumn - true if it is a markers (leftmost) column.public BrowseColumnGuiImpl(WidgetId id, BrowseColumnConfig cfg)
Call BrowseColumn.initialize(com.goldencode.p2j.ui.WidgetId, com.goldencode.p2j.ui.BrowseColumnConfig) to finish the widget initialization.
id - The widget's ID.cfg - Configuration data.public BrowseColumnGuiImpl(WidgetId id, BrowseColumnConfig cfg, boolean markersColumn)
Call BrowseColumn.initialize(com.goldencode.p2j.ui.WidgetId, com.goldencode.p2j.ui.BrowseColumnConfig) to finish the widget initialization.
id - The widget's ID.cfg - Configuration data.markersColumn - true if it is a markers (leftmost) column.public void setWidth(double width)
setWidth in interface ContainersetWidth in class AbstractContainerwidth - Column width in characters.public void initMarkersColumn(BrowseGuiImpl browse)
browse - Parent browse.public boolean isMarkersColumn()
true if this a marker column.public boolean isVisible()
isVisible in interface WidgetisVisible in class BrowseColumnpublic NativeRectangle getActualBounds()
getActualBounds in interface WidgetgetActualBounds in class AbstractWidgetnull if the column is outside of the browse
viewport.public void init(BrowseGuiImpl browse, int leftOffset, int visibleColumnIndex)
browse - Parent browse.leftOffset - Column offset in pixels (i.e. width of preceding columns).visibleColumnIndex - 0-based index of the column among the visible columns.public BrowseGuiImpl getBrowse()
BrowseGuiImpl this column is part of.getBrowse in class BrowseColumnBrowseGuiImpl widget.public int calcColumnWidth()
public int calcColumnWidth(boolean ignoreSaved)
ignoreSaved - true to ignore the saved width for this column.public int getColumnPadding()
public void afterConfigUpdate(BrowseColumnConfig beforeUpdate)
afterConfigUpdate in class BrowseColumnbeforeUpdate - Config reference capturing the config state before
the owner's config was modified.public Dimension dimension()
dimension in interface Widgetdimension in class BrowseColumnpublic void draw()
draw in interface Widgetdraw in class BrowseColumnpublic FontDetails getLabelFont()
FontDetails of this label.FontDetails of the label.public FontDetails getCellsFont()
FontDetails for this column.FontDetails.public void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenermousePressed in class AbstractWidgete - The mouse event.public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenermouseReleased in class AbstractWidgete - The mouse event.public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenermouseDragged in class AbstractWidgete - The mouse event.public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenermouseMoved in class AbstractWidgete - The mouse event.public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenermouseEntered in class AbstractWidgete - The mouse event.public void processDirectManipulationEvent(DirectManipulationEvent event)
processDirectManipulationEvent in interface WidgetprocessDirectManipulationEvent in class AbstractWidgetevent - Event to process.public void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
mouseWheelMoved in interface java.awt.event.MouseWheelListenermouseWheelMoved in class AbstractWidgete - The mouse event.public Window window()
window in interface Widgetwindow in class AbstractWidgetnull if the widget is not yet attached to a Window.public boolean manageSystemActions()
manageSystemActions in class AbstractWidgettrue if the widget has its own event management.
false by default.public void processSystemKey(KeyInput key)
This must be called only in the context of widget-level event processing.
processSystemKey in class AbstractWidgetkey - The key to be processed.public boolean isHeaderArea(NativePoint point)
true if the given point is inside the column header.point - Point to check.java.lang.String getComboBoxCellText(java.lang.String cellText)
cellText - Original text of the cell as if this column is not a combo-box column.cellText is
returned. If this column is a combo-box column, then combo-box item values are
replaced with item descriptions and returned. If there is no matching value, the
original cellText is returnedvoid updateLabel()
public java.lang.String[] getLabelLines()
updateLabel() first
to have then initialized.void initEditorConfig(BaseConfig cfg)
cfg - Editor widget config.public boolean supportsCustomMousePointer()
supportsCustomMousePointer in interface WidgetsupportsCustomMousePointer in class AbstractWidgettrue if the widget supports
LOAD-MOUSE-POINTER() methodpublic void setMousePointerName(java.lang.String name)
setMousePointerName in interface Hoverablename - the attribute valuepublic java.lang.String getMousePointerImpl()
getMousePointerImpl in interface Hoverablepublic int getVisibleColumnIndex()
protected int[] mouseActions()
MouseEvent codes and P2J specific
MouseEvt actions.mouseActions in class AbstractWidgetpublic int getColumnLabelTextWidth()
public int getSortAreaWidth()
public boolean isDrawnAsPressed()
true if the column is visually in pressed state.public boolean isLabelPressed()
true if the column label must visually be in a pressed state.public NativePoint getLabelTextClipPoint()
public NativeRectangle getLabelTextClipRectangle(NativePoint clipPoint)
clipPoint - Clipping point.public int getLabelAreaWidth()
public int getLabelTextTopOffset()
public int getCellTextTopOffset()
public NativePoint getCellTextClipPoint(int viewportIndex)
viewportIndex - 0-based viewport index of the row the cell belongs to.public NativeRectangle getCellTextClipRectangle(NativePoint point)
point - Clipping point.void updateImplicitColumnWidth()
BaseDataType getFilteringEntryValue()
null if the column filter
entry field is not displayed.void showFilteringEntry()
void hideFilteringEntry()
void resetFilteringEntry()
void saveFilterBackupValue()
BrowseFilterEntryField.saveBackupValue() for the linked filter entry field.int calcDataWidth(boolean ignoreSaved)
ignoreSaved - true to ignore the saved width for this column.void resolveFonts()
public boolean isFirstColumn()
true if it is the first column (not including markers column).public boolean isLastColumn()
true if it is the last column (not including markers column).public boolean drawnAsNonSortable()
true if this column should be drawn as non-sortable (the label area is
marked with red).private void handleDragTimer()
private void handleRowFocus(int row)
row - Viewport index of the row under the mouse pointer.private void startSearch()
private boolean hasLeftResizeArea()
BrowseColumnGuiImpl.ResizeArea for more
information).true if this column has left resize area.private boolean hasRightResizeArea()
BrowseColumnGuiImpl.ResizeArea for more
information).true if this column has right resize area.private int getFilterFillInHeight()
private int getFilterFillInWidth()
private int getResetToUnknownButtonSize()
private int getResetToUnknownButtonX(FillInConfig filterFillInConfig)
filterFillInConfig - Config of the column filter entry field.private java.lang.String getColumnFilterDataType()
DB-FILTER-FIELD-MAPPING is set for this column. In this case it corresponds data type of
the mapped field.void updateFilterWidth()
public boolean isLastLockedColumn()
true if it is the last column if the set of locked columns (not
including markers column).boolean isInToggleBoxArea(java.awt.event.MouseEvent e)
e - Mouse event.true if the mouse event happened over the toggle box image area in the
current row in this column.public Menu showPopupMenu(java.awt.event.MouseEvent e, java.lang.Runnable dismissHandler)
AbstractWidget.resolvePopupMenuId().showPopupMenu in class AbstractWidgete - The related mouse event that caused a popup to be shown.dismissHandler - When not null, the runnable instance is executed when the popup menu is dismissed, regardless
whether an item is chosen or not.null if no popup is resolved for this widget.