|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pietschy.command.face.DefaultFaceRenderer
com.pietschy.command.face.MacOSFaceRenderer
public class MacOSFaceRenderer
MacOSFaceRender extends DefaultFaceRenderer to provide Mac specific rendering of
buttons and menus. In particular this renderer ensures.
| Field Summary | |
|---|---|
static java.lang.String |
TOGGLE_TABBED
|
| Constructor Summary | |
|---|---|
MacOSFaceRenderer()
|
|
| Method Summary | |
|---|---|
protected void |
configureClientProperties(javax.swing.AbstractButton button,
RenderContext buttonContext)
|
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 |
isMenuIconsEnabled()
Checks if the renderer will be displaying icons on menu items. |
static boolean |
isMenuMnemonicsEnabled()
Checks if the renderer will be configuring mnemonics on menu items. |
boolean |
isToolbarContext(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 |
setMenuIconsEnabled(boolean menuIconsEnabled)
Sets if the renderer will be displaying icons on menu items. |
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 com.pietschy.command.face.DefaultFaceRenderer |
|---|
configureAccelerator, configureButton, configureMenu, configureText, configureTextPosition, configureToolTip, getBestFace, getDefaultGroupIcon, isDisplayTooltipsOnMenus, isHideToobarText, isPositionToolbarTextBelowIcon, setDefaultGroupIcon, setDisplayTooltipsOnMenus, setHideToobarText, setPositionToolbarTextBelowIcon |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TOGGLE_TABBED
| Constructor Detail |
|---|
public MacOSFaceRenderer()
| Method Detail |
|---|
protected void configureClientProperties(javax.swing.AbstractButton button,
RenderContext buttonContext)
configureClientProperties in class DefaultFaceRenderer
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 isToolbarContext(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.public static boolean isMenuIconsEnabled()
public static void setMenuIconsEnabled(boolean menuIconsEnabled)
menuIconsEnabled - true if the menu icons are enabled, false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||