public abstract class UIEditor extends AsynchronousEditor
Editor implementation whose visuals depict the GUI declared in a
JavaSourceNode instance. This implementation presents a canvas
upon which individual Component instances are parented in their
specified layout as derived from the class member declarations and the
property set statements found in the jbInit method.
Whenever this Editor is the active View, it will
host additional menus in the View menu of the main menubar. A
context menu is also offered allowing quick access to some actions.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTRIBUTE_EDITOR_CONTEXT_READY
Property to express that context of editor is known.
|
_addin, _context, ATTRIBUTE_BACKGROUND_COLOR, ATTRIBUTE_CUSTOM_HORIZONTAL_SCROLLBAR, ATTRIBUTE_CUSTOM_VERTICAL_SCROLLBAR, ATTRIBUTE_DELAY_PALETTE_LOAD, ATTRIBUTE_HORIZONTAL_BLOCK_INCREMENT, ATTRIBUTE_HORIZONTAL_SCROLLBAR_POLICY, ATTRIBUTE_HORIZONTAL_UNIT_INCREMENT, ATTRIBUTE_MENU_ID, ATTRIBUTE_OLD_EDITOR, ATTRIBUTE_SCROLLABLE, ATTRIBUTE_VERTICAL_BLOCK_INCREMENT, ATTRIBUTE_VERTICAL_SCROLLBAR_POLICY, ATTRIBUTE_VERTICAL_UNIT_INCREMENT, CUSTOM_BORDER, PROPERTY_FIXED_BOTTOM_MARGIN, PROPERTY_FIXED_LEFT_MARGIN, PROPERTY_FIXED_RIGHT_MARGIN, PROPERTY_FIXED_TOP_MARGIN, PROPERTY_SCROLLABLE_LEFT_MARGIN, PROPERTY_SCROLLABLE_TOP_MARGINEMPTY_SELECTION, PROJECT_PROP, VISIBLE_PROP, WORKSPACE_PROP| Modifier | Constructor and Description |
|---|---|
protected |
UIEditor()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract UIEditorCanvas |
getActiveCanvas()
Get the active UIEditorCanvas.
|
abstract CmtComponentSource |
getComponentSource()
Get the CmtComponentSource being designed.
|
java.awt.Component |
getDefaultFocusComponent()
Get the default focusable Component associated with this View.
|
java.lang.Object |
getEditorAttribute(java.lang.String attribute) |
static UIEditorLogPage |
getErrorLog()
Get the LogPage in which to write errors.
|
HelpInfo |
getHelpInfo()
Get the HelpInfo associated with this View.
|
activate, activateImpl, asyncModeEnabled, close, closeImpl, contextAvailable, createEditorNotInitializedGUI, createProgressHandle, createUIModelGetterTask, deactivate, deactivateImpl, delayContextSet, doSetContext, editorHidden, editorReady, editorShown, getEditorContent, getEditorNotInitializedGUI, getEditorNotInitializedMessage, getGUI, getGUIComponent, getRequestProcessor, hiddenImpl, invokeLaterAfterRepaint, isActivated, isContentModelLoaded, isOpened, isShown, open, openImpl, scheduleTask, setContext, setDelayedContext, shownImpl, switchEditorGUI, switchEditorGuiInUiThread, update, updateContextImpladdPreferredLayoutListener, addPropertyChangeListener, firePropertyChangeEvent, getBottomComponent, getContext, getContextMenu, getController, getDependentNodes, getDisplayName, getEditorAddin, getFixedBottomMargin, getFixedLeftMargin, getFixedRightMargin, getFixedTopMargin, getMiniToolbar, getPreferredLayoutBaseName, getPreferredLayoutURL, getScrollableLeftMargin, getScrollableTopMargin, getTabDescription, getTabIcon, getTabLabel, getTitleLabel, getType, initializeActiveLayout, initializeLayout, isReady, loadSettings, newId, prepareForSaving, removePreferredLayoutListener, removePropertyChangeListener, saveSettings, setEditorAddin, setEditorAttribute, setPreferredLayoutBaseName, setPreferredLayoutURL, setTypeaddViewListener, addViewSelectionListener, addViewStateListener, fireViewCollapsed, fireViewExpanded, fireViewSelectionChanged, getContext, getId, getSelection, getSelectionFromUI, getTabName, getToolbar, getViewWithoutDecoration, isVisible, loadLayout, loadManifestToolbar, loadManifestToolbar, owner, removeViewListener, removeViewSelectionListener, removeViewStateListener, saveLayout, scheduleUpdateSelection, setId, setOwner, setToolbarVisible, show, toString, updateSelection, updateSelectionImpl, updateTitle, updateToolbarActions, updateVisibleActions, updateVisibleActionspublic static final java.lang.String ATTRIBUTE_EDITOR_CONTEXT_READY
public abstract UIEditorCanvas getActiveCanvas()
UIEditorCanvaspublic abstract CmtComponentSource getComponentSource()
CmtComponentSourcepublic java.awt.Component getDefaultFocusComponent()
getDefaultFocusComponent in class Editorpublic HelpInfo getHelpInfo()
getHelpInfo in interface HelpablegetHelpInfo in class Viewpublic static UIEditorLogPage getErrorLog()
UIEditorLogPagepublic java.lang.Object getEditorAttribute(java.lang.String attribute)
getEditorAttribute in class Editorattribute - takes values from ATTRIBUTE_ constants.