SMACS

smacs.xngr.browser.editor
Interface EditorProperties

All Superinterfaces:
ViewProperties
All Known Implementing Classes:
EditorPropertiesXml

public interface EditorProperties
extends ViewProperties

Handles the properties for the Editor. The original has been in editor.EditorProperties which is now an implementation of this interface.

Author:
Edwin Dankert

Method Summary
 void addSearch(String search)
          Adds a Search string to the Editor.
 Vector getSearches()
          Returns the list of searches.
 int getSpaces()
          Gets the number of spaces to substitute for a tab.
 boolean indentMixedContent()
          Check to find out if the mixed content should be indented when formatting.
 boolean isDirectionDown()
          Check to find out if the search direction is down.
 boolean isMatchCase()
          Check to find out if the search matches the case.
 boolean isTagCompletion()
          Check to find out if the tag completion is enabled.
 EditorProperties newEditorProperties(Element element)
          Constructor for the editor properties.
 void setDirectionDown(boolean downward)
          Set the search direction.
 void setIndentMixedContent(boolean indent)
          Set wether the mixed content should be indented when formatting.
 void setMatchCase(boolean matchCase)
          Set the match-case search property.
 void setSpaces(int spaces)
          Set the number of spaces to substitute for a tab.
 void setTagCompletion(boolean complete)
          Set the tag completion property.
 void update()
          Updates the searches elements.
 
Methods inherited from interface smacs.xngr.browser.ui.ViewProperties
getDimension, getPosition, setDimension, setPosition
 

Method Detail

newEditorProperties

public EditorProperties newEditorProperties(Element element)
Constructor for the editor properties.

Parameters:
element - the element that contains the properties, for the editor.

isMatchCase

public boolean isMatchCase()
Check to find out if the search matches the case.

Returns:
true when the search matches case.

setMatchCase

public void setMatchCase(boolean matchCase)
Set the match-case search property.

Parameters:
matchCase - the search property.

setSpaces

public void setSpaces(int spaces)
Set the number of spaces to substitute for a tab.

Parameters:
spaces - the number of spaces.

getSpaces

public int getSpaces()
Gets the number of spaces to substitute for a tab.

Returns:
the number of spaces.

isTagCompletion

public boolean isTagCompletion()
Check to find out if the tag completion is enabled.

Returns:
true when the tag completion is enabled.

setTagCompletion

public void setTagCompletion(boolean complete)
Set the tag completion property.

Parameters:
complete - the tag completion property.

indentMixedContent

public boolean indentMixedContent()
Check to find out if the mixed content should be indented when formatting.

Returns:
true when the mixed content should be indented.

setIndentMixedContent

public void setIndentMixedContent(boolean indent)
Set wether the mixed content should be indented when formatting.

Parameters:
indent - true when the mixed content should be indented.

isDirectionDown

public boolean isDirectionDown()
Check to find out if the search direction is down.

Returns:
true when the search direction is down.

setDirectionDown

public void setDirectionDown(boolean downward)
Set the search direction.

Parameters:
downward - the search direction.

addSearch

public void addSearch(String search)
Adds a Search string to the Editor.

Parameters:
search - the search.

getSearches

public Vector getSearches()
Returns the list of searches.

Returns:
the list of searches.

update

public void update()
Updates the searches elements.


SMACS