|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.ui.theme.ThemeData
com.mucommander.ui.theme.Theme
public class Theme
| Field Summary | |
|---|---|
static int |
CUSTOM_THEME
Describes custom muCommander themes. |
static int |
PREDEFINED_THEME
Describes predefined muCommander themes. |
static int |
USER_THEME
Describes the user defined theme. |
| Method Summary | |
|---|---|
boolean |
canModify()
Checks whether this theme is modifiable. |
java.lang.String |
getName()
Returns the theme's name. |
int |
getType()
Returns the theme's type. |
boolean |
setColor(int id,
java.awt.Color color)
Sets one of the theme's colors. |
boolean |
setFont(int id,
java.awt.Font font)
Sets one of the theme's fonts. |
java.lang.String |
toString()
Returns the theme's name. |
| Methods inherited from class com.mucommander.ui.theme.ThemeData |
|---|
addDefaultValuesListener, cloneData, cloneData, getColor, getDefaultFont, getFont, importData, isColorDifferent, isColorDifferent, isColorSet, isFontDifferent, isFontDifferent, isFontSet, isIdentical, isIdentical, removeDefaultValuesListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int USER_THEME
public static final int PREDEFINED_THEME
public static final int CUSTOM_THEME
| Method Detail |
|---|
public boolean canModify()
A theme is modifiable if and only if it's the user theme. This is a utility method
which produces exactly the same result as getType() == USER_THEME.
true if the theme is modifiable, false otherwise.public int getType()
public java.lang.String getName()
public boolean setFont(int id,
java.awt.Font font)
Note that this method will only work if the theme is the user one. Any other theme type will throw an exception.
setFont in class ThemeDataid - identifier of the font to set.font - value for the specified font.
true if the call actually changed the data, false otherwise.
java.lang.IllegalStateException - thrown if the theme is not the user one.ThemeManager.setCurrentFont(int,Font)
public boolean setColor(int id,
java.awt.Color color)
Note that this method will only work if the theme is the user one. Any other theme type will throw an exception.
setColor in class ThemeDataid - identifier of the color to set.color - value for the specified color.
true if the call actually changed the data, false otherwise.
java.lang.IllegalStateException - thrown if the theme is not the user one.ThemeManager.setCurrentColor(int,Color)public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard