|
org.netbeans.swing.plaf 1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.swing.plaf.LFCustoms
public abstract class LFCustoms
Look and feel customizations interface. For various look and feels, there is a need to customize colors, borders etc. to provide 'native-like' UI. Implementers of this interface should install and uninstall custom UI elements into UIManager on request. There are three types of customization possible:
A non-standard look and feel that wishes to provide some custom colors for NetBeans window system, etc., can do so by placing an instance of its implementation of LFCustoms into UIDefaults under the key "Nb.[return value of the custom look and feel's getID() method]LFCustoms".
Given that all this class does is return some keys and values, in the future it may be replaced by an XML file similar to theme files.
This class defines a number of relatively self-explanatory UIManager keys for things used in various parts of NetBeans.
Constructor Summary | |
---|---|
LFCustoms()
|
Method Summary | |
---|---|
protected Object[] |
additionalKeys()
LFCustoms implementations which use UIBootstrapValue.Lazy should return any keys that it will install here, so they can be merged into the list of things to clear on L&F change. |
Object[] |
createApplicationSpecificKeysAndValues()
Create any objects to put into UIDefaults for custom components which use UIManager to find values, UIs, etc. |
Object[] |
createGuaranteedKeysAndValues()
Provide UIDefaults entries for things which components rely on being non-null, but which may be null on some look and feels or some versions of the look and feel in question. |
Object[] |
createLookAndFeelCustomizationKeysAndValues()
Create any objects to put into UIDefaults to replace values normally supplied by the look and feel, to customize application appearance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String WORKPLACE_FILL
protected static final String CUSTOM_FONT_SIZE
protected static final String DEFAULT_FONT_SIZE
protected static final String EDITOR_STATUS_LEFT_BORDER
protected static final String EDITOR_STATUS_INNER_BORDER
protected static final String EDITOR_STATUS_RIGHT_BORDER
protected static final String EDITOR_STATUS_ONLYONEBORDER
protected static final String EDITOR_TOOLBAR_BORDER
protected static final String EDITOR_ERRORSTRIPE_SCROLLBAR_INSETS
protected static final String EXPLORER_STATUS_BORDER
protected static final String EXPLORER_FOLDER_ICON
protected static final String EXPLORER_FOLDER_OPENED_ICON
protected static final String DESKTOP_BORDER
public static final String SCROLLPANE_BORDER
protected static final String TOOLBAR_UI
protected static final String DESKTOP_BACKGROUND
public static final String SCROLLPANE_BORDER_COLOR
protected static final String OUTPUT_SELECTION_BACKGROUND
protected static final String OUTPUT_HYPERLINK_FOREGROUND
protected static final String OUTPUT_BACKGROUND
protected static final String OUTPUT_FOREGROUND
protected static final String PROPSHEET_ALTERNATE_ROW_COLOR
protected static final String PROPSHEET_SET_BACKGROUND
protected static final String PROPSHEET_SELECTED_SET_BACKGROUND
protected static final String PROPSHEET_SET_FOREGROUND
protected static final String PROPSHEET_SELECTED_SET_FOREGROUND
protected static final String PROPSHEET_DISABLED_FOREGROUND
protected static final String PROPSHEET_SELECTION_BACKGROUND
protected static final String PROPSHEET_SELECTION_FOREGROUND
protected static final String PROPSHEET_BUTTON_FOREGROUND
protected static final String PROPSHEET_BUTTON_COLOR
protected static final String PROPSHEET_BACKGROUND
protected static final String PROPSHEET_ICON_MARGIN
protected static final String PROPSHEET_ROWHEIGHT
protected static final String ERROR_FOREGROUND
protected static final String WARNING_FOREGROUND
protected static final String EDITOR_TABBED_CONTAINER_UI
protected static final String EDITOR_TAB_DISPLAYER_UI
protected static final String VIEW_TAB_DISPLAYER_UI
protected static final String SLIDING_TAB_DISPLAYER_UI
protected static final String SLIDING_TAB_BUTTON_UI
protected static final String SLIDING_BUTTON_UI
protected static final String EDITOR_TAB_CONTENT_BORDER
protected static final String EDITOR_TAB_TABS_BORDER
protected static final String EDITOR_TAB_OUTER_BORDER
protected static final String VIEW_TAB_CONTENT_BORDER
protected static final String VIEW_TAB_TABS_BORDER
protected static final String VIEW_TAB_OUTER_BORDER
protected static final String SLIDING_TAB_CONTENT_BORDER
protected static final String SLIDING_TAB_TABS_BORDER
protected static final String SLIDING_TAB_OUTER_BORDER
protected static final String TAB_ACTIVE_SELECTION_BACKGROUND
protected static final String TAB_ACTIVE_SELECTION_FOREGROUND
protected static final String TAB_SELECTION_FOREGROUND
protected static final String TAB_SELECTION_BACKGROUND
protected static final String EXPLORER_MINISTATUSBAR_BORDER
protected static final String DESKTOP_SPLITPANE_BORDER
protected static final String PROPERTYSHEET_BOOTSTRAP
public static final String CONTROLFONT
public static final String SYSTEMFONT
public static final String USERFONT
public static final String MENUFONT
public static final String WINDOWTITLEFONT
public static final String SUBFONT
public static final String LISTFONT
public static final String TREEFONT
public static final String PANELFONT
public static final String SPINNERFONT
public static final String PROGRESS_CANCEL_BUTTON_ICON
public static final String PROGRESS_CANCEL_BUTTON_ROLLOVER_ICON
public static final String PROGRESS_CANCEL_BUTTON_PRESSED_ICON
Constructor Detail |
---|
public LFCustoms()
Method Detail |
---|
protected Object[] additionalKeys()
public Object[] createLookAndFeelCustomizationKeysAndValues()
public Object[] createApplicationSpecificKeysAndValues()
public Object[] createGuaranteedKeysAndValues()
UIManager.get("controlShadow")
, you need to guarantee
that this will be non-null when fetched from UIManager - but look and feels do not guarantee this. The typical
pattern here is to put into UIManager an instance of GuaranteedValue
, i.e.
new GuaranteedValue ("controlShadow", Color.GRAY)
which will take on the value already present
if it's there, and provide a fallback if it's not.
GuaranteedValue
|
org.netbeans.swing.plaf 1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |