|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.renderer.ComponentProvider<AbstractButton>
org.jdesktop.swingx.renderer.ButtonProvider
public class ButtonProvider
A component provider which uses a AbstractButton.
Field Summary |
---|
Fields inherited from class org.jdesktop.swingx.renderer.ComponentProvider |
---|
alignment, defaultVisuals, formatter, rendererComponent |
Constructor Summary | |
---|---|
ButtonProvider()
|
Method Summary | |
---|---|
protected void |
configureState(CellContext context)
Configures the renderering component's state from the given cell context. |
protected AbstractButton |
createRendererComponent()
Factory method to create and return the component to use for rendering. |
protected void |
format(CellContext context)
Formats the renderering component's content from the given cell context. |
protected void |
setBorderPainted(boolean b)
|
Methods inherited from class org.jdesktop.swingx.renderer.ComponentProvider |
---|
configureContent, configureVisuals, createRendererController, getHorizontalAlignment, getRendererComponent, getRendererController, getStringValue, getToStringConverter, setHorizontalAlignment, setToStringConverter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ButtonProvider()
Method Detail |
---|
protected void format(CellContext context)
Overridden to set the button's selected state. It's set to true if the context's value equals Boolean.TRUE, false otherwise.
format
in class ComponentProvider<AbstractButton>
context
- the cell context to configure from, must not be null.protected void configureState(CellContext context)
Here: set's the buttons horizontal alignment and borderpainted properties to this controller's properties.
configureState
in class ComponentProvider<AbstractButton>
context
- the cell context to configure from, must not be null.protected AbstractButton createRendererComponent()
Here: returns a JCheckBox as rendering component.
createRendererComponent
in class ComponentProvider<AbstractButton>
protected void setBorderPainted(boolean b)
b
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |