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.
|
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 |
---|---|
void |
afterConfigUpdate(BrowseColumnConfig beforeUpdate)
The method is called after the configuration associated with
the implementor changes.
|
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.
|
double |
width()
Dummy implementation of the missing method.
|
add, add, add, addContainerStateListener, addDirectly, belongsTo, checkWidget, childrenLocation, clipping, clipRectangle, copyState, currentFocus, currentFocus, cycleFocus, defaultFocus, destroy, detach, doLayout, dumpCurrentWidgets, dumpWidgets, endSizeChange, findMouseSource, firstFocus, focus, focusTraversable, focusWorker, formatDump, get, getClipRect, getEffectiveScrollableSize, getFocusInt, getIgnoreFocus, getLayout, getScrollableSize, getTabItemList, hasFocusable, insets, lastFocus, moveAfterTabItem, moveBeforeTabItem, moveToBottom, moveToBottomInClass, moveToTop, moveToTopInClass, moveToZpos, nextFocus, normalizeZOrder, onWidgetAdded, onWidgetRemoved, prepareWidgets, prevFocus, processKeyEvent, reflectAncestorChange, reflectLocationChange, remove, removeContainerStateListener, repaint, replace, requestFocus, setFocus, setFocusInt, setHeight, setIgnoreFocus, setInsets, setLayout, setSize, setSize, setTabItemList, setWidth, startSizeChange, triggerContainerStateRedrawEnabled, unrealize, updateSizeWorker, widgets, widgetsAsList
_setHidden, _setVisible, activateDirectManipulation, addFocusListener, addKeyListener, afterConfigUpdateBase, ancestor, ancestorId, autoResize, bounds, clear, clearWidget, clipRectangle, clipRectangle, clipWith, copyColors, createMouseHoverAction, deactivateDirectManipulation, debug, disable, displayPhysicalLocation, drawCaret, enable, enclosingFrame, forceCursorOnFocus, forceVisibility, getActualBounds, getAndResetBitmap, getAndSetBitmap, getBitmapCopy, getCachedScreenLocation, getCachedScreenPhysicalLocation, getCustomMousePointer, getDefaultEvent, getEffectiveMousePointer, getId, getLoadedMousePointer, getMenuMouse, getMouseActions, getPortableMouseEventCoordinates, getSelectedText, getState, getTextHeight, getTextHeightNative, getTextWidth, getTextWidth, getTextWidthNative, getTextWidthNative, getVisiblePart, getZOrderClass, hasFocus, hide, highlighted, ignoreAction, isCurrent, isDirectManipulationCapable, isDirectManipulationRequired, isDisplayed, isEnabled, isHeader, isRealized, isRepaintDisabled, isRMBEntrySupported, isScreenLocationCached, isTabStop, isThreeD, isTotallyObscured, isVisible, location, manageSystemActions, mouseActions, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, moveToBottom, moveToTop, name, navigable, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalBounds, physicalDimension, physicalLocation, postprocessConfig, prepParentLocation, processDirectManipulationEvent, processFocusEvent, processKeyListeners, processMnemonic, processMnemonicImpl, processSystemKey, raiseLegacyMouseEvents, refresh, registerWidgetStateListener, 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, window
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addFocusListener, addKeyListener, ancestor, ancestorId, bounds, clearWidget, defaultMousePtr, displayPhysicalLocation, drawCaret, enclosingFrame, enforceDefaultMousePtr, forceCursorOnFocus, forceVisibility, getActualBounds, getCustomMousePointer, getEffectiveMousePointer, getId, getLegacyWidget, getLoadedMousePointer, getMenuMouse, getMouseActions, getSelectedText, getState, getVisiblePart, getZOrderClass, hasFocus, hide, highlighted, isCurrent, isDirectManipulable, isDisplayed, isDroppable, isEnabled, isHeader, isRealized, isRepaintDisabled, isRMBEntrySupported, isTabStop, isThreeD, isTotallyObscured, isVisible, location, maySwitchFocus, moveToBottom, moveToTop, name, navigable, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalBounds, physicalDimension, physicalLocation, postprocessConfig, processDirectManipulationEvent, processFocusEvent, processKeyListeners, processMnemonic, raiseLegacyMouseEvents, repaint, requestFocus, requestSync, resizeTo, resolvePopupMenuId, screen, screenLocation, screenPhysicalLocation, setEnabled, setHidden, setHighlighted, setLocation, setLocation, setMousePointer, setParent, setPhysicalLocation, setState, setVisible, show, supportsCustomMousePointer, topLevelWindow, window
protected 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 DataContainer
public BaseDataType getValue()
getValue
in interface DataContainer
public boolean isModified()
isModified
in interface DataContainer
false
and is never called.public void setValue(BaseDataType value)
setValue
in interface DataContainer
value
- The value representing the current widget value.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 FocusListener
event
- Reference to the event.public void onFocusGained(FocusEvent event)
Browse.onFocusGained(com.goldencode.p2j.ui.client.event.FocusEvent)
.onFocusGained
in interface FocusListener
event
- Reference to the event.