Package com.arbortext.epic.ui
Interface View
- All Superinterfaces:
AbstractView
- All Known Implementing Classes:
ViewImpl
The
View interface is a subclass of AbstractView,
representing a view of an associated Document. (An edit
view of a document is represented as a View object.) An
Editor frame Window can contain two Views. If
a UIEvent is raised for a window, an event listener can use
the view attribute of the UIEvent to obtain an
object that implements the View interface (not just the
AbstractView).- Since:
- Epic 4.3
-
Method Summary
Modifier and TypeMethodDescriptionintgetAclId()An integer constant uniquely identifying theview.The background color of theView.The foreground color of theView.This method returns the value of the Arbortext set option, scoped to thisview.AStringListcontaining the names of all view-scope Arbortext set options.booleanA boolean value showing whether the view should be updated when the document is modified.TheWindowin which thisviewresides.voidsetBackgroundColor(String backgroundColor) The background color of theView.voidsetForegroundColor(String foregroundColor) The foreground color of theView.voidSets the value of the Arbortext set option, scoped to thisview.voidsetSuspendUpdate(boolean suspendUpdate) A boolean value showing whether the view should be updated when the document is modified.Methods inherited from interface org.w3c.dom.views.AbstractView
getDocument
-
Method Details
-
getWindow
Window getWindow()TheWindowin which thisviewresides. -
getOptionNames
StringList getOptionNames()AStringListcontaining the names of all view-scope Arbortext set options. -
getAclId
int getAclId()An integer constant uniquely identifying theview. This is the value that is returned by the ACL functioncurrent_windowif theviewis active. -
getForegroundColor
String getForegroundColor()The foreground color of theView.- Throws:
WindowException- INVALID_COLOR_ERR: Raised if theDOMStringis an unsupported color name or an invalid RGB specification.
-
setForegroundColor
The foreground color of theView.- Throws:
WindowException- INVALID_COLOR_ERR: Raised if theDOMStringis an unsupported color name or an invalid RGB specification.
-
getBackgroundColor
String getBackgroundColor()The background color of theView.- Throws:
WindowException- INVALID_COLOR_ERR: Raised if theDOMStringis an unsupported color name or an invalid RGB specification.
-
setBackgroundColor
The background color of theView.- Throws:
WindowException- INVALID_COLOR_ERR: Raised if theDOMStringis an unsupported color name or an invalid RGB specification.
-
getSuspendUpdate
boolean getSuspendUpdate()A boolean value showing whether the view should be updated when the document is modified. Typically used when an application programmer needs to modify a large portion of the document and does not want the view to be updated until all changes have been made.
If the value is set totrue, the view is not updated when the document is modified. If the value is set tofalse, normal updates are restored, and all changes to the document will be immediately reflected in the corresponding view. If the view is an edit view, this value only affects the modifications happened within the same script this value is set, and all edit views of the same document are affected. When the script finishes executing, the views will be updated. If the view is a dialog view, the value only affects the view it is set to, and the value affects the view until it is set to a different value . -
setSuspendUpdate
void setSuspendUpdate(boolean suspendUpdate) A boolean value showing whether the view should be updated when the document is modified. Typically used when an application programmer needs to modify a large portion of the document and does not want the view to be updated until all changes have been made.
If the value is set totrue, the view is not updated when the document is modified. If the value is set tofalse, normal updates are restored, and all changes to the document will be immediately reflected in the corresponding view. If the view is an edit view, this value only affects the modifications happened within the same script this value is set, and all edit views of the same document are affected. When the script finishes executing, the views will be updated. If the view is a dialog view, the value only affects the view it is set to, and the value affects the view until it is set to a different value . -
getOption
This method returns the value of the Arbortext set option, scoped to thisview.- Parameters:
name- Specifies the option name, which must be a view-scope option.- Returns:
- The string value of the option, or null if
nameis not a valid option name. Boolean values returnonoroff.
-
setOption
Sets the value of the Arbortext set option, scoped to thisview.- Parameters:
name- Specifies the option name, which must be a view-scope option.value- Specifies the new value of the option. Boolean values are specified using the stringsonoroff.- Throws:
AOMException- Raised if the method detects an error (for example, ifnameis not a valid view-scope option).
-