Previous Topic

Next Topic

Book Contents

Book Index

Additional UI Customization

Synth Support Enhancements

  • Okay/Cancel buttons have been assigned unique names: "mfOKButton" and "mfCancelButton"
  • Okay/Cancel buttons can include an image if a resource with a given name is present on the classpath.
    • "mfOKButton.{png,gif,jpg}"
    • "mfCancelButton.{png,gif,jpg}"

Localization Enhancement

ConfigToolbar cues have been extended to allow the use of a Message ID for localization purposes. For example, cue="keyStr" calls Messages.getString(keyStr), which goes in the properties as webeq3.editor.keyStr.

Menu Configuration

  • MenuConfig objects (SimpleConfigurationInfo, StyleConfigurationInfo, StructureConfigurationInfo) have been extended to reflect the entire menu tree so that any menu item can be disabled or removed.
    • Introduce MenuConfigInfo with the following:
      • boolean getMenuEntryIncluded(itemID)
      • boolean setMenuEntryIncluded(itemID, true|false)
  • To get an instance of MenuConfigInfo, call getDefaultMenuConfigInfo() from top-level editor components.

API Enhancements

  • A method has been introduced to set the default status line: setDefaultStatus(String msg).
  • A method has been introduced to set the default equation background/foreground color to complement font and size: setDefaultEquationStyle(String fontname, int size, String fgcolor, String bgcolor).

Config Toolbar Enhancement

  • Now allows an imagesrc attribute on the btn element.
  • When present, the image indicated will be used for the button face, regardless of the element's content. The action for the button is identical to what it would be without the attribute.
  • The image is rendered, scaled and centered, as is presently the case with image buttons.
  • The value is a path relative to the CLASSPATH. In particular, a fully qualified URL will fetch it.


[Design Science Home]
Copyright © 1996-2016 Design Science, Inc. All rights reserved.