|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pietschy.command.DefaultFaceRenderer
public class DefaultFaceRenderer
The DefaultFaceRender provides the base methods for configuring buttons and menus as well as a standard implementation that is suitable for most platforms.
| Field Summary | |
|---|---|
static DownArrowIcon |
defaultGroupIcon
|
| Constructor Summary | |
|---|---|
DefaultFaceRenderer()
|
|
| Method Summary | |
|---|---|
protected void |
configureAccelerator(javax.swing.JMenuItem menu,
Face face)
Safely sets the accelerator for the specified menu. |
void |
configureButton(javax.swing.AbstractButton button,
RenderContext buttonContext)
Configures the specified button using the specified RenderContext. |
protected void |
configureIcons(javax.swing.AbstractButton button,
Face face)
|
void |
configureMenu(javax.swing.JMenuItem menu,
RenderContext menuContext)
Configures the specified button using the specified RenderContext. |
protected void |
configureMnemonic(javax.swing.AbstractButton button,
Face face)
|
protected void |
configureText(javax.swing.AbstractButton button,
Face face)
Configures the text attributes of the button. |
protected void |
configureTextPosition(javax.swing.AbstractButton button,
Face face)
|
protected void |
configureToolTip(javax.swing.AbstractButton button,
Face face)
|
protected DownArrowIcon |
getDefaultGroupIcon()
|
protected Face |
getFace(RenderContext buttonContext)
|
static void |
setDefaultGroupIcon(DownArrowIcon defaultGroupIcon)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static DownArrowIcon defaultGroupIcon
| Constructor Detail |
|---|
public DefaultFaceRenderer()
| Method Detail |
|---|
public void configureButton(javax.swing.AbstractButton button,
RenderContext buttonContext)
FaceRendererRenderContext.
configureButton in interface FaceRendererbutton - the button to configure.buttonContext - the RenderContext of the button.protected Face getFace(RenderContext buttonContext)
protected DownArrowIcon getDefaultGroupIcon()
public static void setDefaultGroupIcon(DownArrowIcon defaultGroupIcon)
public void configureMenu(javax.swing.JMenuItem menu,
RenderContext menuContext)
FaceRendererRenderContext.
configureMenu in interface FaceRenderermenu - the menu to configure.menuContext - the RenderContext of the menu.
protected void configureText(javax.swing.AbstractButton button,
Face face)
button - the button to configureMenu.face -
protected void configureTextPosition(javax.swing.AbstractButton button,
Face face)
protected void configureMnemonic(javax.swing.AbstractButton button,
Face face)
protected void configureToolTip(javax.swing.AbstractButton button,
Face face)
protected void configureAccelerator(javax.swing.JMenuItem menu,
Face face)
menu - face -
protected void configureIcons(javax.swing.AbstractButton button,
Face face)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||