ATTRIBUTE_SCROLLABLE

public static final java.lang.String ATTRIBUTE_SCROLLABLE

By default, editors are hosted in a JViewport except if the editor
returns Boolean.FALSE for this property.
This attribute is queried at the time the editor is hosted and cannot be changed by
property changes.

ATTRIBUTE_CUSTOM_VERTICAL_SCROLLBAR

ATTRIBUTE_HORIZONTAL_SCROLLBAR_POLICY

public static final java.lang.String ATTRIBUTE_HORIZONTAL_SCROLLBAR_POLICY

The scrollbar policy to be applied to the horizontal scrollbar.
return ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER or
ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS in the form of an Integer
Note that ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED is not supported

ATTRIBUTE_VERTICAL_SCROLLBAR_POLICY

public static final java.lang.String ATTRIBUTE_VERTICAL_SCROLLBAR_POLICY

The scrollbar policy to be applied to the vertical scrollbar.
return ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER or
ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS in the form of an Integer.
Note that ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED is not supported

getDefaultFocusComponent

public java.awt.Component getDefaultFocusComponent()

This method is used to know what component should get the focus by default.
The returned component should be a child of the component returned by getGUI() or getGUI()
itself and should be requestFocusable.
By contract, getGUI() will always be called before getDefaultFocusComponent().

Returns:

the component that should take the focus

getTitleLabel

public java.lang.String getTitleLabel()

This method is called to get the title to display in the title bar of the EditorFrame hosting this editor.

getTabLabel

public java.lang.String getTabLabel()

This method is called to get the title to display in the tab hosting this editor.

getTabIcon

public javax.swing.Icon getTabIcon()

This method is called to get the icon to display in the tab hosting this editor.

getTabDescription

public java.lang.String getTabDescription()

This method is called to get the tooltip to display in the tab hosting this editor.

getEditorAddin

getDependentNodes

Editors which access or manipulate more than one Node
must return these Nodes using this method. This allows
the EditorManager to track Node usage, so that it can
close Nodes when they are no longer open in any editor.

editorShown

public void editorShown()

This method is called when an editor is made visible.
Then intent of this method is to let the editor know if it has to synchronize its content
You should not do anything heavy in this method (like showing dockable windows) as the
editorHidden()/editorShown could be called in sequence when the user creates a new tabgroup.

getContextMenu

close

getBottomComponent

public java.awt.Component getBottomComponent()

Returns:

a component to be displayed underneath the editor to the right
of the editor tabs. This can only be used when ATTRIBUTE_SCROLLABLE is
Boolean.FALSE. The component replaces the horizontal scrollbar and will
be stretched horizontally to fill the available space.

loadSettings

This method will be called when the the product is restarted but also when an editor is split. If the new editor
is of the same type as the original, the settings will be taken from the original (saveSettings) and will be
applied to the new editor (loadSettings). If your editor needs to make the difference, it can test for the
element.getName() which will return "DUPLICATON".
Example:

getPreferredLayoutURL

Implementations should override this method and return
their preferred layout. This method is called from the
activatePreferredLayout method to determine if this selector has
a preferred layout. Default implementation returns null
indicating that the selector does not have a preferred layout.