|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.CellRendererPane com.jidesoft.grid.CellRendererPaneEx com.jidesoft.grid.TreeExpandablePanel com.jidesoft.grid.MarginExpandablePanel
public class MarginExpandablePanel
The component used by PropertyTableCellRenderer and HierarchicalTableCellRenderer which has a "+/-" button.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.CellRendererPane |
---|
CellRendererPane.AccessibleCellRendererPane |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class com.jidesoft.grid.TreeExpandablePanel |
---|
_collapsedIcon, _disabledBackground, _disabledForeground, _expandableCell, _expandedIcon, _hasFocus, _indent, _isSelected, _lineColor, _lineTypeDashed, _node, _paintLeafNodeLines, _paintLines, _respectRendererPreferredSize, _showRootHandles, _table, CELL_HEIGHT, LEFT_MARGIN, TEXT_ICON_GAP |
Fields inherited from class com.jidesoft.grid.CellRendererPaneEx |
---|
_actualRenderer |
Fields inherited from class javax.swing.CellRendererPane |
---|
accessibleContext |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
MarginExpandablePanel(JTable table)
|
|
MarginExpandablePanel(JTable table,
Icon expandedIcon,
Icon collapsedIcon,
Color disabledBackground,
Color disabledForeground)
Deprecated. use MarginExpandablePanel(javax.swing.JTable) instead |
Method Summary | |
---|---|
protected Icon |
getIcon(Node node)
Gets the icon for the node. |
Color |
getMarginBackground()
Gets the margin background color.. |
protected void |
initComponents()
|
boolean |
isPaintMarginBackground()
Checks if the margin background should be painted. |
void |
paint(Graphics g)
Calls the UI delegate's paint method, if the UI delegate is non- null . |
protected void |
paintBackground(Graphics g)
Paints the background. |
void |
setMarginBackground(Color marginBackground)
Sets the margin background. |
void |
setPaintMarginBackground(boolean paintMarginBackground)
Sets the attribute which controls if margin background should be painted. |
protected boolean |
shouldShowMargin(ExpandableCell property)
Checks if the margin should be shown. |
Methods inherited from class com.jidesoft.grid.TreeExpandablePanel |
---|
getColumnWidth, getMinimumSize, getPreferredSize, getToolTipText, isExpandIconVisible, isHasFocus, isSelected, paintFocus, setColumnWidth, setEnabled, setExpandableCell, setFont, setHasFocus, setNode, setSelected |
Methods inherited from class com.jidesoft.grid.CellRendererPaneEx |
---|
getActualRenderer, getBorder, isPaintBackground, paintBorder, setActualRenderer, setPaintBackground |
Methods inherited from class javax.swing.CellRendererPane |
---|
addImpl, getAccessibleContext, invalidate, paintComponent, paintComponent, paintComponent, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MarginExpandablePanel(JTable table)
@Deprecated public MarginExpandablePanel(JTable table, Icon expandedIcon, Icon collapsedIcon, Color disabledBackground, Color disabledForeground)
MarginExpandablePanel(javax.swing.JTable)
instead
table
- the tableexpandedIcon
- the expanded iconcollapsedIcon
- the collapsed icondisabledBackground
- the disabled backgrounddisabledForeground
- the disabled foregroundMethod Detail |
---|
protected void initComponents()
initComponents
in class TreeExpandablePanel
public void paint(Graphics g)
null
. We pass the delegate a copy
of the Graphics
object to protect the rest of the paint code from irrevocable changes (for example,
Graphics.translate
).
If you override this in a subclass you should not make permanent changes to the passed in Graphics
.
For example, you should not alter the clip Rectangle
or modify the transform. If you need to do
these operations you may find it easier to create a new Graphics
from the passed in
Graphics
and manipulate it. Further, if you do not invoker super's implementation you must honor the
opaque property, that is if this component is opaque, you must completely fill in the background in a non-opaque
color. If you do not honor the opaque property you will likely see visual artifacts.
paint
in class TreeExpandablePanel
g
- the Graphics
object to protectpaint(java.awt.Graphics)
,
ComponentUI
protected Icon getIcon(Node node)
node
- the node
protected boolean shouldShowMargin(ExpandableCell property)
property
- the property
protected void paintBackground(Graphics g)
TreeExpandablePanel
paintBackground
in class TreeExpandablePanel
g
- the Graphics instancepublic Color getMarginBackground()
public void setMarginBackground(Color marginBackground)
marginBackground
- the margin backgroundpublic boolean isPaintMarginBackground()
public void setPaintMarginBackground(boolean paintMarginBackground)
paintMarginBackground
- the attribute
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |