public abstract class AbstractExpandableItemsHandler<KeyType,ComponentType extends javax.swing.JComponent> extends java.lang.Object implements ExpandableItemsHandler<KeyType>
Modifier and Type | Field and Description |
---|---|
protected ComponentType |
myComponent |
EXPANDED_RENDERER, IGNORE_ITEM_SELECTION, IGNORE_MOUSE_HOVER, RENDERER_DISABLED, USE_RENDERER_BOUNDS
Modifier | Constructor and Description |
---|---|
protected |
AbstractExpandableItemsHandler(ComponentType component) |
Modifier and Type | Method and Description |
---|---|
protected void |
doFillBackground(int height,
int width,
java.awt.Graphics2D g) |
protected void |
doPaintTooltipImage(java.awt.Component rComponent,
java.awt.Rectangle cellBounds,
java.awt.Graphics2D g,
KeyType key) |
protected java.awt.Color |
getBorderColor() |
protected abstract KeyType |
getCellKeyForPoint(java.awt.Point point) |
protected abstract Pair<java.awt.Component,java.awt.Rectangle> |
getCellRendererAndBounds(KeyType key) |
java.util.Collection<KeyType> |
getExpandedItems() |
protected java.awt.Dimension |
getImageSize(int width,
int height) |
protected java.awt.Rectangle |
getVisibleRect(KeyType key) |
protected void |
handleMouseEvent(java.awt.event.MouseEvent e,
boolean forceUpdate) |
protected void |
handleSelectionChange(KeyType selected) |
protected void |
handleSelectionChange(KeyType selected,
boolean processIfUnfocused) |
boolean |
isEnabled() |
protected boolean |
isPaintBorder() |
protected boolean |
isPopup() |
boolean |
isShowing() |
protected void |
onFocusLost() |
void |
setEnabled(boolean enabled) |
static void |
setRelativeBounds(java.awt.Component parent,
java.awt.Rectangle bounds,
java.awt.Component child,
java.awt.Container validationParent) |
protected void |
updateCurrentSelection() |
protected final ComponentType extends javax.swing.JComponent myComponent
protected AbstractExpandableItemsHandler(ComponentType component)
public static void setRelativeBounds(java.awt.Component parent, java.awt.Rectangle bounds, java.awt.Component child, java.awt.Container validationParent)
protected void onFocusLost()
public void setEnabled(boolean enabled)
setEnabled
in interface ExpandableItemsHandler<KeyType>
public boolean isEnabled()
isEnabled
in interface ExpandableItemsHandler<KeyType>
public java.util.Collection<KeyType> getExpandedItems()
getExpandedItems
in interface ExpandableItemsHandler<KeyType>
protected void updateCurrentSelection()
protected void handleMouseEvent(java.awt.event.MouseEvent e, boolean forceUpdate)
protected void handleSelectionChange(KeyType selected)
protected void handleSelectionChange(KeyType selected, boolean processIfUnfocused)
protected boolean isPopup()
public boolean isShowing()
protected boolean isPaintBorder()
protected java.awt.Color getBorderColor()
protected java.awt.Dimension getImageSize(int width, int height)
protected void doFillBackground(int height, int width, java.awt.Graphics2D g)
protected void doPaintTooltipImage(java.awt.Component rComponent, java.awt.Rectangle cellBounds, java.awt.Graphics2D g, KeyType key)
protected java.awt.Rectangle getVisibleRect(KeyType key)
protected abstract Pair<java.awt.Component,java.awt.Rectangle> getCellRendererAndBounds(KeyType key)
protected abstract KeyType getCellKeyForPoint(java.awt.Point point)