public class BrowseColumn<O extends OutputManager<?>> extends AbstractContainer<O> implements DataContainer, WidgetWithConfig<BrowseColumnConfig>, FocusListener
| Modifier and Type | Field and Description |
|---|---|
protected Browse<O> |
browse
Link to the browse widget.
|
protected BrowseColumnConfig |
config
Component attribute container.
|
listeners, location, mousePtr, nativeInsets, physicalLocation| Constructor and Description |
|---|
BrowseColumn(WidgetId id)
Constructor which creates default config.
|
BrowseColumn(WidgetId id,
BrowseColumnConfig cfg)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptTrigger(int eventCode)
Tests if the target event can be triggered or not.
|
void |
afterConfigUpdate(BrowseColumnConfig beforeUpdate)
The method is called after the configuration associated with
the implementor changes.
|
void |
completeTrigger(int eventCode)
Manages the internal state after the trigger is finished.
|
BrowseColumnConfig |
config()
Provide access to the attributes stored in the widget.
|
Dimension |
dimension()
Dummy implementation of the missing method.
|
void |
draw()
Dummy implementation of the missing method.
|
Browse<O> |
getBrowse()
Obtain the
Browse this column is part of. |
java.lang.String |
getText()
Get text representation of the selected value.
|
BaseDataType |
getValue()
Returns the BaseDataType instance representing the current value.
|
double |
height()
Dummy implementation of the missing method.
|
boolean |
hidden()
Get current hidden state.
|
void |
initialize(WidgetId id,
BrowseColumnConfig cfg)
Replacement API for the logic which should exist in the widget's c'tor, but the logic
can't be executed as it depends on the widget being registered into the official registry.
|
boolean |
isFocusable()
Checks whether this attribute container can receive focus generally.
|
boolean |
isModified()
Getting the modification state of the widget.
|
boolean |
isVisible()
Check if widget is visible.
|
Dimension |
minimumSize()
Dummy implementation of the missing method.
|
void |
onFocusGained(FocusEvent event)
Handle situation when the browse column widget gains focus.
|
void |
onFocusLost(FocusEvent event)
Handle situation when the browse column widget loses the focus.
|
void |
processEvent(Event evt)
Intercept special events.
|
void |
setBrowse(Browse<O> browse)
Link column to owning frame.
|
void |
setValue(BaseDataType value)
Sets the BaseDataType instance representing the current value.
|
void |
setValue(BaseDataType value,
java.lang.String fmt)
Sets the BaseDataType instance representing the current value
formatted under a given format.
|
void |
startTrigger(int eventCode)
Manages the internal state before the trigger is started.
|
double |
width()
Dummy implementation of the missing method.
|
add, 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, setWidth, 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, 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, hasTooltip, hide, highlighted, ignoreAction, initialHeight, initialWidth, isCurrent, isDirectManipulationActive, isDirectManipulationActiveOrInUIB, isDirectManipulationCapable, isDirectManipulationRequired, isDisplayed, isEnabled, isHeader, isMouseDrag, isRealized, isRepaintDisabled, isRMBEntrySupported, isScreenLocationCached, isTabStop, isThreeD, isTotallyObscured, 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, 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, waitgetChangedValuewidgetsAsListacceptsEscAsAnyKey, addFocusListener, addKeyListener, ancestor, ancestorId, bounds, canMovetoTop, clearWidget, defaultMousePtr, displayPhysicalLocation, drawCaret, enclosingFrame, enforceDefaultMousePtr, forceCursorOnFocus, forceVisibility, getActualBounds, 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, processDirectManipulationEvent, 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, supportsCustomMousePointer, systemFocusGrabbed, topLevelWindow, unregisterWidgetListener, validateDisplayValue, windowprotected Browse<O extends OutputManager<?>> browse
protected BrowseColumnConfig config
public BrowseColumn(WidgetId id, BrowseColumnConfig cfg)
Call 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 BrowseColumn(WidgetId id)
Call initialize(com.goldencode.p2j.ui.WidgetId, com.goldencode.p2j.ui.BrowseColumnConfig) to finish the widget initialization.
id - The widget's ID.public void initialize(WidgetId id, BrowseColumnConfig cfg)
This API is called after the widget is created and added to the registry.
initialize in interface WidgetWithConfig<BrowseColumnConfig>id - The widget's ID.cfg - The config used to initialize this widget.public void setBrowse(Browse<O> browse)
browse - Browse instance to link with.public BrowseColumnConfig config()
config in interface Widget<O extends OutputManager<?>>config in interface ConfigOwner<BrowseColumnConfig>config in class AbstractWidget<O extends OutputManager<?>>public void afterConfigUpdate(BrowseColumnConfig beforeUpdate)
afterConfigUpdate in interface ConfigOwner<BrowseColumnConfig>beforeUpdate - Config reference capturing the config state before
the owner's config was modified.public boolean isFocusable()
isFocusable in interface Widget<O extends OutputManager<?>>isFocusable in class AbstractWidget<O extends OutputManager<?>>true if this container can be focused under
certain conditions. false if, and only if, this
attribute container can never receive focus.public java.lang.String getText()
getText in interface DataContainerpublic BaseDataType getValue()
getValue in interface DataContainerpublic boolean isModified()
isModified in interface DataContainerfalse and is never called.public void setValue(BaseDataType value)
setValue in interface DataContainervalue - The value representing the current widget value.public void setValue(BaseDataType value, java.lang.String fmt)
value - The value representing the current widget value.fmt - The format under which the value should be formatted.public void draw()
draw in interface Widget<O extends OutputManager<?>>draw in class AbstractContainer<O extends OutputManager<?>>public double height()
height in interface Widget<O extends OutputManager<?>>height in class AbstractContainer<O extends OutputManager<?>>public Dimension dimension()
dimension in interface Widget<O extends OutputManager<?>>dimension in class AbstractContainer<O extends OutputManager<?>>public double width()
width in interface Widget<O extends OutputManager<?>>width in class AbstractContainer<O extends OutputManager<?>>public Dimension minimumSize()
minimumSize in interface Widget<O extends OutputManager<?>>minimumSize in class AbstractContainer<O extends OutputManager<?>>public boolean isVisible()
isVisible in interface Widget<O extends OutputManager<?>>isVisible in class AbstractWidget<O extends OutputManager<?>>true if widget is visible.public boolean hidden()
hidden in interface Widget<O extends OutputManager<?>>hidden in class AbstractWidget<O extends OutputManager<?>>public void processEvent(Event evt)
processEvent in interface Widget<O extends OutputManager<?>>processEvent in class AbstractWidget<O extends OutputManager<?>>evt - Event to process.public void onFocusLost(FocusEvent event)
Browse.onFocusLost(com.goldencode.p2j.ui.client.event.FocusEvent).onFocusLost in interface FocusListenerevent - Reference to the event.public void onFocusGained(FocusEvent event)
Browse.onFocusGained(com.goldencode.p2j.ui.client.event.FocusEvent).onFocusGained in interface FocusListenerevent - Reference to the event.public Browse<O> getBrowse()
Browse this column is part of.Browse widget.public void startTrigger(int eventCode)
startTrigger in interface Widget<O extends OutputManager<?>>eventCode - The event codepublic void completeTrigger(int eventCode)
completeTrigger in interface Widget<O extends OutputManager<?>>eventCode - The event codepublic boolean acceptTrigger(int eventCode)
acceptTrigger in interface Widget<O extends OutputManager<?>>eventCode - The target events code