|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pietschy.command.DefaultFaceRenderer
org.pietschy.command.MacFaceRenderer
public class MacFaceRenderer
The MacFaceRender extends DefaultFaceRenderer to provide Mac specific rendering of
buttons and menus. In particular this renderer ensures.
| Field Summary |
|---|
| Fields inherited from class org.pietschy.command.DefaultFaceRenderer |
|---|
defaultGroupIcon |
| Constructor Summary | |
|---|---|
MacFaceRenderer()
|
|
| Method Summary | |
|---|---|
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)
|
protected void |
configureMnemonic(javax.swing.AbstractButton button,
Face face)
|
static boolean |
isButtonMnemonicsEnabled()
Checks if the renderer will be configuring mnemonics on buttons. |
static boolean |
isMenuMnemonicsEnabled()
Checks if the renderer will be configuring mnemonics on menu items. |
boolean |
isToolbar(RenderContext buttonContext)
Checks the the current button context is rendering a toolbar. |
static void |
setButtonMnemonicsEnabled(boolean buttonMnemonicsEnabled)
Sets if the renderer will be configuring mnemonics on buttons. |
static void |
setMenuMnemonicsEnabled(boolean menuMnemonicsEnabled)
Sets if the renderer will be configuring mnemonics on menu items. |
protected boolean |
shouldDisplayMnemonic(javax.swing.AbstractButton button)
Returns false. |
| Methods inherited from class org.pietschy.command.DefaultFaceRenderer |
|---|
configureAccelerator, configureMenu, configureText, configureTextPosition, configureToolTip, getDefaultGroupIcon, getFace, setDefaultGroupIcon |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MacFaceRenderer()
| Method Detail |
|---|
public void configureButton(javax.swing.AbstractButton button,
RenderContext buttonContext)
FaceRendererRenderContext.
configureButton in interface FaceRendererconfigureButton in class DefaultFaceRendererbutton - the button to configure.buttonContext - the RenderContext of the button.
protected void configureMnemonic(javax.swing.AbstractButton button,
Face face)
configureMnemonic in class DefaultFaceRenderer
protected void configureIcons(javax.swing.AbstractButton button,
Face face)
configureIcons in class DefaultFaceRendererprotected boolean shouldDisplayMnemonic(javax.swing.AbstractButton button)
button - the button to check.
public boolean isToolbar(RenderContext buttonContext)
Face.TOOLBAR.
buttonContext - the RenderContext for the current button.
public static boolean isButtonMnemonicsEnabled()
public static void setButtonMnemonicsEnabled(boolean buttonMnemonicsEnabled)
buttonMnemonicsEnabled - true if the buttons mnemonics are enabled, false otherwise.public static boolean isMenuMnemonicsEnabled()
public static void setMenuMnemonicsEnabled(boolean menuMnemonicsEnabled)
menuMnemonicsEnabled - true if the menu mnemonics are enabled, false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||