|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swfm.mica.widgets.MiToolkit
| Field Summary | |
static int |
acceleratorModifier
|
static java.lang.String |
Mi_DEFAULT_WIDGET_ATTRIBUTES_PROPERTY_NAME
|
static int |
radioButtonShape
|
| Constructor Summary | |
MiToolkit()
|
|
| Method Summary | |
static void |
applyStandardObjectAttributes(MiPart obj)
|
void |
applyStandardWidgetAttributesToWidget(MiWidget widget)
|
static MiNativeMessageDialog |
createAboutDialog(MiEditor window,
java.lang.String title,
MiPart logo,
java.lang.String text,
boolean modal)
Creates a standard 'About' dialog box. |
static void |
generateColorSchemeFromBaseColor(java.awt.Color c)
|
static MiAttributes |
getAttributes(int attributeID)
|
static MiPart |
getCheckMarkIcon()
|
static java.lang.String |
getDefaultWidgetAttributeProperty(java.lang.String name)
|
static MiPart |
getIconizedWindowIcon()
|
static MiWidgetAttributes |
getStandardWidgetAttributes()
|
java.awt.Color |
getTextFieldEditableBGColor()
|
java.awt.Color |
getTextFieldInEditableBGColor()
|
int |
getTextInSensitiveBorderLook()
|
java.awt.Color |
getTextInSensitiveColor()
|
int |
getTextSensitiveBorderLook()
|
java.awt.Color |
getTextSensitiveColor()
|
static MiAttributes |
getToolkitAttributesForCategory(java.lang.String tookitAttributeCategory)
|
static java.lang.String |
getWidgetAttributeProperty(MiWidgetAttributes atts,
java.lang.String key)
|
static void |
initLookAndFeel()
|
static void |
overrideAttributes(MiPart part,
int attributeID)
|
static void |
postAboutDialog(MiEditor window,
java.lang.String title,
MiPart logo,
java.lang.String text,
boolean modal)
Creates a standard 'About' dialog box. |
static void |
postErrorDialog(MiEditor window,
MiPart msg)
Creates a dialog box which prompts the user with an error icon and the given error message. |
static void |
postErrorDialog(MiPart window,
java.lang.String msg)
Creates a dialog box which prompts the user with an error icon and the given error message. |
static void |
postInfoDialog(MiEditor window,
java.lang.String title,
MiPart msg,
boolean modal)
Creates a dialog box which prompts the user with an info icon and the given informative message. |
static java.lang.String |
postQueryDialog(MiEditor window,
java.lang.String title,
MiPart body)
|
static java.lang.String |
postQueryDialog(MiEditor window,
java.lang.String title,
MiPart body,
java.lang.String okStr,
java.lang.String notOkStr)
|
static java.lang.String |
postQueryDialog(MiEditor window,
java.lang.String title,
java.lang.String msg,
java.lang.String okStr,
java.lang.String notOkStr)
Creates a standard 'Query' dialog box. |
static java.lang.String |
postSaveChangesAllViewsDialog(MiEditor window,
java.lang.String nameOfAChanged)
|
static java.lang.String |
postSaveChangesDialog(MiEditor window,
java.lang.String nameOfChanged)
Displays a dialog box which prompts the user to 1) save the changes thay have made to the given nameOfChanged, 2) Loose their changes or 3) cancel the current operation. |
static void |
postScrolledErrorDialog(MiPart window,
java.lang.String msg)
Creates a dialog box which prompts the user with an error icon and the given error message. |
static void |
postWarningDialog(MiEditor window,
java.lang.String msg)
|
static java.lang.String |
postWarningDialog(MiEditor window,
java.lang.String title,
java.lang.String msg,
boolean cancelButtonIsDisplayed)
Creates a dialog box which prompts the user with an warning icon and the given query message. |
static void |
refreshLookAndFeel()
|
static void |
setAttributes(MiPart part,
int attributeID)
|
static void |
setBackgroundAttributes(MiPart part,
int attributeID)
|
void |
setStandardObjectAttributes(MiPart obj)
|
static void |
setStandardWidgetAttributes(MiWidgetAttributes widgetAtts)
public MiiDeviceRenderer getBackgroundRenderer() { return(backgroundRenderer); } public void setBackgroundRenderer(MiiDeviceRenderer r) { backgroundRenderer = r; if (widgetNormalAttributes.getBackgroundColor() != Mi_TRANSPARENT_COLOR) widgetNormalAttributes = widgetNormalAttributes.setBackgroundRenderer(r); } |
static void |
setToolkitAttributesForCategory(java.lang.String tookitAttributeCategory,
MiAttributes atts)
Possible categories are defined in MiiToolkit.java and are specifyable from properties.mica and are currently: Mi_TOOLKIT_EDITABLE_BG_PROPERTY_NAME = "MiToolkit.editableBackground"; Mi_TOOLKIT_UNEDITABLE_BG_PROPERTY_NAME = "MiToolkit.uneditableBackground"; Mi_TOOLKIT_INDENTED_BG_PROPERTY_NAME = "MiToolkit.indentedBackground"; Mi_TOOLKIT_TEXT_INSENSITIVE_PROPERTY_NAME= "MiToolkit.textInsensitive"; Mi_TOOLKIT_TEXT_SELECTED_PROPERTY_NAME = "MiToolkit.textSelected"; Mi_TOOLKIT_TEXT_PROPERTY_NAME = "MiToolkit.text"; Mi_TOOLKIT_WINDOW_TEXT_PROPERTY_NAME = "MiToolkit.windowText"; Mi_TOOLKIT_WINDOW_PROPERTY_NAME = "MiToolkit.window"; Mi_TOOLKIT_MENU_TEXT_PROPERTY_NAME = "MiToolkit.menuText"; Mi_TOOLKIT_MENU_PROPERTY_NAME = "MiToolkit.menu"; Mi_TOOLKIT_CELL_FOCUS_PROPERTY_NAME = "MiToolkit.cellFocus"; Mi_TOOLKIT_CELL_SELECTED_PROPERTY_NAME = "MiToolkit.cellSelected"; |
static java.util.Properties |
setWidgetAttributeProperties(MiWidgetAttributes atts,
java.util.Properties properties)
|
static boolean |
setWidgetAttributeProperty(MiWidgetAttributes atts,
java.lang.String key,
java.lang.String value)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String Mi_DEFAULT_WIDGET_ATTRIBUTES_PROPERTY_NAME
public static int radioButtonShape
public static int acceleratorModifier
| Constructor Detail |
public MiToolkit()
| Method Detail |
public static void initLookAndFeel()
public static void refreshLookAndFeel()
public static MiAttributes getAttributes(int attributeID)
public static void overrideAttributes(MiPart part,
int attributeID)
public static void setAttributes(MiPart part,
int attributeID)
public static void setBackgroundAttributes(MiPart part,
int attributeID)
public static java.util.Properties setWidgetAttributeProperties(MiWidgetAttributes atts,
java.util.Properties properties)
public static boolean setWidgetAttributeProperty(MiWidgetAttributes atts,
java.lang.String key,
java.lang.String value)
public static void setToolkitAttributesForCategory(java.lang.String tookitAttributeCategory,
MiAttributes atts)
public static MiAttributes getToolkitAttributesForCategory(java.lang.String tookitAttributeCategory)
public static java.lang.String getDefaultWidgetAttributeProperty(java.lang.String name)
public static java.lang.String getWidgetAttributeProperty(MiWidgetAttributes atts,
java.lang.String key)
public static void generateColorSchemeFromBaseColor(java.awt.Color c)
public java.awt.Color getTextFieldEditableBGColor()
public java.awt.Color getTextFieldInEditableBGColor()
public java.awt.Color getTextSensitiveColor()
public java.awt.Color getTextInSensitiveColor()
public int getTextInSensitiveBorderLook()
public int getTextSensitiveBorderLook()
public static void setStandardWidgetAttributes(MiWidgetAttributes widgetAtts)
public static MiWidgetAttributes getStandardWidgetAttributes()
public void applyStandardWidgetAttributesToWidget(MiWidget widget)
public static void applyStandardObjectAttributes(MiPart obj)
public void setStandardObjectAttributes(MiPart obj)
public static MiPart getIconizedWindowIcon()
public static MiPart getCheckMarkIcon()
public static java.lang.String postSaveChangesDialog(MiEditor window,
java.lang.String nameOfChanged)
window - the parent window the dialog box
will be displayed in.nameOfChanged - the name that will appear in the
dialog box prompt or null
public static java.lang.String postSaveChangesAllViewsDialog(MiEditor window,
java.lang.String nameOfAChanged)
public static void postScrolledErrorDialog(MiPart window,
java.lang.String msg)
window - the parent window the dialog box
will be displayed in.msg - the error message
public static void postErrorDialog(MiPart window,
java.lang.String msg)
window - the parent window the dialog box
will be displayed in.msg - the error message
public static void postErrorDialog(MiEditor window,
MiPart msg)
window - the parent window the dialog box
will be displayed in.msg - the error message
public static java.lang.String postWarningDialog(MiEditor window,
java.lang.String title,
java.lang.String msg,
boolean cancelButtonIsDisplayed)
window - the parent window the dialog box
will be displayed in.title - the dialog box border msgmsg - the query messagecancelButtonIsDisplayed - true if "No" button is to be
displayed
public static void postWarningDialog(MiEditor window,
java.lang.String msg)
public static void postInfoDialog(MiEditor window,
java.lang.String title,
MiPart msg,
boolean modal)
window - the parent window the dialog box
will be displayed in.title - the dialog box border msgmsg - the info messagemodal - true if this is to be a modal dialog
public static void postAboutDialog(MiEditor window,
java.lang.String title,
MiPart logo,
java.lang.String text,
boolean modal)
window - the parent window the dialog box
will be displayed in.title - the dialog box border msglogo - the comany logomodal - true if this is to be a modal dialog
public static MiNativeMessageDialog createAboutDialog(MiEditor window,
java.lang.String title,
MiPart logo,
java.lang.String text,
boolean modal)
window - the parent window the dialog box
will be displayed in.title - the dialog box border msglogo - the comany logomodal - true if this is to be a modal dialog
public static java.lang.String postQueryDialog(MiEditor window,
java.lang.String title,
java.lang.String msg,
java.lang.String okStr,
java.lang.String notOkStr)
window - the parent window the dialog box
will be displayed in.title - the dialog box border msgmsg - the query message
public static java.lang.String postQueryDialog(MiEditor window,
java.lang.String title,
MiPart body)
public static java.lang.String postQueryDialog(MiEditor window,
java.lang.String title,
MiPart body,
java.lang.String okStr,
java.lang.String notOkStr)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||