|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.AbstractButton
javax.swing.JButton
com.ehsbe.commons.gui.util.JButtonTableCellRenderer
public class JButtonTableCellRenderer
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JButton |
---|
JButton.AccessibleJButton |
Nested classes/interfaces inherited from class javax.swing.AbstractButton |
---|
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
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 javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
JButtonTableCellRenderer()
Default constructor. |
|
JButtonTableCellRenderer(Action a)
A action driven JButton. |
|
JButtonTableCellRenderer(Icon icon)
A JButton with an icon. |
Method Summary | |
---|---|
void |
firePropertyChange(String propertyName,
boolean oldValue,
boolean newValue)
Overridden for performance reasons. |
protected void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Overridden for performance reasons. |
Component |
getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
|
void |
invalidate()
Overridden for performance reasons. |
boolean |
isIgnoreState()
Set whether states of the cell should be ignored. |
boolean |
isOpaque()
Overridden for performance reasons. |
protected void |
printComponent(Graphics g)
|
void |
repaint()
Overridden for performance reasons. |
void |
repaint(long tm,
int x,
int y,
int width,
int height)
Overridden for performance reasons. |
void |
repaint(Rectangle r)
Overridden for performance reasons. |
void |
revalidate()
Overridden for performance reasons. |
void |
setIgnoreState(boolean ignoreState)
Set whether states of the cell should be obtained and the text should be decorated, depending on the state. |
void |
setPreferredSize(String txt)
Define the preferred size of the button by the given txt. |
protected void |
setValue(Object value)
Set the text of this component wrt. to the given value and the current state. |
void |
updateUI()
Notification from the UIManager that the look and feel
[L&F] has changed. |
void |
validate()
Overridden for performance reasons. |
Methods inherited from class javax.swing.JButton |
---|
getAccessibleContext, getUIClassID, isDefaultButton, isDefaultCapable, paramString, removeNotify, setDefaultCapable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JButtonTableCellRenderer()
public JButtonTableCellRenderer(Icon icon)
icon
- icon to setpublic JButtonTableCellRenderer(Action a)
a
- action to fire on button press.Method Detail |
---|
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
getTableCellRendererComponent
in interface TableCellRenderer
public void updateUI()
UIManager
that the look and feel
[L&F] has changed. Replaces the current UI object with the latest version
from the UIManager
.
updateUI
in class JButton
JComponent.updateUI()
public boolean isIgnoreState()
true
if the state of cells gets ignored.public void setIgnoreState(boolean ignoreState)
ignoreState
- if true
, dont ask and render always as
in the normal state.protected void setValue(Object value)
value
- value to setpublic boolean isOpaque()
isOpaque
in class JComponent
true
if opaquepublic void invalidate()
invalidate
in class Container
public void validate()
validate
in class Container
public void revalidate()
revalidate
in class JComponent
public void repaint(long tm, int x, int y, int width, int height)
repaint
in class JComponent
tm
- ignoredx
- ignoredy
- ignoredwidth
- ignoredheight
- ignoredpublic void repaint(Rectangle r)
repaint
in class JComponent
r
- ignoredpublic void repaint()
repaint
in class Component
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)
firePropertyChange
in class Component
propertyName
- ignred, if not text
oldValue
- newValue
- public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)
firePropertyChange
in class JComponent
propertyName
- ignoredoldValue
- ignorednewValue
- ignoredpublic void setPreferredSize(String txt)
txt
- text to use for preferred layout calculationprotected void printComponent(Graphics g)
printComponent
in class JComponent
|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |