C
- component typeU
- component UI typeD
- decoration typepublic class TableCellPainter<C extends JTable,U extends WebTableUI,D extends IDecoration<C,D>> extends AbstractSectionDecorationPainter<C,U,D> implements ITableCellPainter<C,U>
AbstractSectionDecorationPainter
.Modifier and Type | Field and Description |
---|---|
protected Integer |
column
Painted column index.
|
protected Integer |
row
Painted row index.
|
origin
ancestor, containerListener, current, DECORATION_BORDER_PROPERTY, DECORATION_STATES_PROPERTY, decorationCache, decorations, focused, focusStateTracker, hierarchyTracker, hover, hoverStateTracker, inFocusedParent, inFocusedParentAncestorListener, inFocusedParentTracker, inHoveredParent, inHoveredParentAncestorListener, inHoveredParentTracker, neighboursTracker, stateDecorationCache, states
component, installed, ltr, propertyChangeListener, sectionPainters, ui
Constructor and Description |
---|
TableCellPainter() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getDecorationStates()
Returns decoration states from
AbstractSectionDecorationPainter.origin Painter if possible. |
String |
getSectionId()
Returns section identifier that is be unique within its parent
Painter . |
protected boolean |
isFocused()
Returns whether or not component has focus.
|
void |
prepareToPaint(int row,
int column)
Prepares painter to pain table cell.
|
getOrigin, install, isPlainBackgroundRequired, uninstall, usesContainerView, usesFocusedView, usesHierarchyBasedView, usesHoverView, usesInFocusedParentView, usesInHoveredParentView
afterInstall, afterUninstall, beforeUninstall, childrenChanged, collectDecorationStates, contains, deactivateLastDecoration, focusChanged, getBaseline, getBaselineResizeBehavior, getBorder, getDecoration, getDecorations, getDecorationsKey, getPreferredSize, hierarchyChanged, hoverChanged, installBorderListeners, installChildrenListeners, installFocusListeners, installHoverListeners, installInFocusedParentListeners, installInHoveredParentListeners, installPropertiesAndListeners, isDecorationAvailable, isEnabled, isHover, isInFocusedParent, isInHoveredParent, isOpaque, isOpaqueDecorated, isOpaqueUndecorated, orientationChange, paint, paintContent, propertyChanged, provideShape, uninstallBorderListeners, uninstallChildrenListeners, uninstallFocusListeners, uninstallHoverListeners, uninstallInFocusedParentListeners, uninstallInHoveredParentListeners, uninstallPropertiesAndListeners, updateDecorationState, updateFocusListeners, updateHoverListeners, updateInFocusedParent, updateInHoveredParent, usesState, usesState
asList, beforeInstall, borderChange, getCompleteBorder, getInstalledSectionPainters, getSectionPainters, install, installPropertyChangeListener, installSectionPainter, installSectionPainters, isInstalled, isSectionPainter, isSettingsUpdateAllowed, paintSection, repaint, repaint, repaint, revalidate, saveOrientation, uninstall, uninstallPropertyChangeListener, uninstallSectionPainter, uninstallSectionPainters, updateAll, updateBorder, updateOpacity, updateOrientation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOrigin, install, uninstall
contains, getBaseline, getBaselineResizeBehavior, getPreferredSize, install, isInstalled, isOpaque, paint, uninstall
protected transient Integer row
protected transient Integer column
public String getSectionId()
SectionPainter
Painter
.
It could be anything, but shorter identifiers are recommended for performance reasons.getSectionId
in interface SectionPainter<C extends JTable,U extends WebTableUI>
Painter
protected boolean isFocused()
AbstractDecorationPainter
isFocused
in class AbstractDecorationPainter<C extends JTable,U extends WebTableUI,D extends IDecoration<C,D>>
@NotNull public List<String> getDecorationStates()
AbstractSectionDecorationPainter
AbstractSectionDecorationPainter.origin
Painter
if possible.
That is quite useful to retain all origin component states from its Painter
and further expand on them for the section.getDecorationStates
in interface IDecorationPainter<C extends JTable,U extends WebTableUI,D extends IDecoration<C,D>>
getDecorationStates
in class AbstractSectionDecorationPainter<C extends JTable,U extends WebTableUI,D extends IDecoration<C,D>>
public void prepareToPaint(int row, int column)
ITableCellPainter
prepareToPaint
in interface ITableCellPainter<C extends JTable,U extends WebTableUI>
row
- painted row indexcolumn
- painted column indexCopyright © 2020. All rights reserved.