|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pietschy.command.face.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.
| 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 context)
Configures the specified button using the specified RenderContext. |
protected void |
configureClientProperties(javax.swing.AbstractButton button,
RenderContext buttonContext)
|
protected void |
configureIcons(javax.swing.AbstractButton button,
Face face)
|
void |
configureMenu(javax.swing.JMenuItem menu,
RenderContext context)
Configures the specified button using the specified RenderContext. |
protected void |
configureMnemonic(javax.swing.AbstractButton button,
Face face)
|
protected void |
configureText(javax.swing.AbstractButton button,
RenderContext context)
Configures the text attributes of the button. |
protected void |
configureTextPosition(javax.swing.AbstractButton button,
RenderContext context)
|
protected void |
configureToolTip(javax.swing.AbstractButton button,
Face face)
This method |
protected Face |
getBestFace(RenderContext buttonContext)
|
protected javax.swing.Icon |
getDefaultGroupIcon()
|
boolean |
isDisplayTooltipsOnMenus()
|
boolean |
isHideToobarText()
Checks if toolbar buttons should never display text. |
boolean |
isPositionToolbarTextBelowIcon()
Checks if text should always be rendered below the icons on toolbars. |
void |
setDefaultGroupIcon(javax.swing.Icon defaultGroupIcon)
|
void |
setDisplayTooltipsOnMenus(boolean displayTooltipsOnMenus)
|
void |
setHideToobarText(boolean hideToobarText)
Configures this render to never render text on toolbar buttons. |
void |
setPositionToolbarTextBelowIcon(boolean positionToolbarTextBelowIcon)
Configures this renderer to always display toolbar text below the icon. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultFaceRenderer()
| Method Detail |
|---|
public boolean isPositionToolbarTextBelowIcon()
FaceRenderer
isPositionToolbarTextBelowIcon in interface FaceRenderertrue if the text of toolbar buttons should aways
be rendered below the icon, false to
use the face configuration as is.public void setPositionToolbarTextBelowIcon(boolean positionToolbarTextBelowIcon)
FaceRenderer
setPositionToolbarTextBelowIcon in interface FaceRendererpositionToolbarTextBelowIcon - true to display toolbar text
below the icon, false to use
the face configuration.public boolean isHideToobarText()
FaceRenderer
isHideToobarText in interface FaceRenderertrue if toolbar buttons should never display text, false
if the face normal configuration should be used.public void setHideToobarText(boolean hideToobarText)
FaceRenderer
setHideToobarText in interface FaceRendererhideToobarText - true to never render text on toolbar
buttons, false to use the face configration.public boolean isDisplayTooltipsOnMenus()
public void setDisplayTooltipsOnMenus(boolean displayTooltipsOnMenus)
public void configureButton(javax.swing.AbstractButton button,
RenderContext context)
FaceRendererRenderContext.
configureButton in interface FaceRendererbutton - the button to configure.context - the RenderContext of the button.
protected Face getBestFace(RenderContext buttonContext)
throws FaceNotFoundException
FaceNotFoundExceptionprotected javax.swing.Icon getDefaultGroupIcon()
public void setDefaultGroupIcon(javax.swing.Icon defaultGroupIcon)
public void configureMenu(javax.swing.JMenuItem menu,
RenderContext context)
FaceRendererRenderContext.
configureMenu in interface FaceRenderermenu - the menu to configure.context - the RenderContext of the menu.
protected void configureText(javax.swing.AbstractButton button,
RenderContext context)
button - the button to configureMenu.context -
protected void configureMnemonic(javax.swing.AbstractButton button,
Face face)
protected void configureTextPosition(javax.swing.AbstractButton button,
RenderContext context)
protected void configureToolTip(javax.swing.AbstractButton button,
Face face)
button - face -
protected void configureAccelerator(javax.swing.JMenuItem menu,
Face face)
menu - face -
protected void configureIcons(javax.swing.AbstractButton button,
Face face)
protected void configureClientProperties(javax.swing.AbstractButton button,
RenderContext buttonContext)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||