Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.virtuosotechnologies.asaph.standardgui
Class EditorPrefs  view EditorPrefs download EditorPrefs.java

java.lang.Object
  extended bycom.virtuosotechnologies.asaph.standardgui.EditorPrefs
All Implemented Interfaces:
com.virtuosotechnologies.asaph.maingui.PrefsPaneProvider

class EditorPrefs
extends java.lang.Object
implements com.virtuosotechnologies.asaph.maingui.PrefsPaneProvider

Prefs pane for the editor


Nested Class Summary
static class EditorPrefs.PrefsChangedEvent
           
static interface EditorPrefs.PrefsListener
           
 
Field Summary
private static java.lang.String AUTO_SMARTQUOTES_PREF
           
private  boolean autoSmartQuotes_
           
private  com.virtuosotechnologies.lib.util.EventBroadcastHelper broadcaster_
           
private static java.lang.String EDITOR_PREFSNODE
           
private  java.util.prefs.Preferences prefs_
           
private static java.lang.String STR_EditorPrefs_SmartQuotesCheck
           
private static java.lang.String STR_EditorPrefs_UndoLevelsLabel
           
private  int undoLevels_
           
private static java.lang.String UNDOLEVELS_PREF
           
 
Constructor Summary
(package private) EditorPrefs()
          Constructor
 
Method Summary
(package private)  void addPrefsListener(EditorPrefs.PrefsListener listener)
           
 javax.swing.JComponent createPane(javax.swing.JComponent dialogParent)
          This method is called when the prefs window is opened.
(package private)  int getUndoLevels()
           
(package private)  boolean isAutoSmartQuoting()
           
 void paneDisposed()
          This method is called when the prefs window is closed.
 void paneFocused()
          This method is called when the pane is brought into focus.
 void paneUnfocused()
          This method is called when the pane is unfocused.
(package private)  void removePrefsListener(EditorPrefs.PrefsListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STR_EditorPrefs_UndoLevelsLabel

private static final java.lang.String STR_EditorPrefs_UndoLevelsLabel

STR_EditorPrefs_SmartQuotesCheck

private static final java.lang.String STR_EditorPrefs_SmartQuotesCheck

EDITOR_PREFSNODE

private static final java.lang.String EDITOR_PREFSNODE
See Also:
Constant Field Values

UNDOLEVELS_PREF

private static final java.lang.String UNDOLEVELS_PREF
See Also:
Constant Field Values

AUTO_SMARTQUOTES_PREF

private static final java.lang.String AUTO_SMARTQUOTES_PREF
See Also:
Constant Field Values

prefs_

private java.util.prefs.Preferences prefs_

undoLevels_

private int undoLevels_

autoSmartQuotes_

private boolean autoSmartQuotes_

broadcaster_

private com.virtuosotechnologies.lib.util.EventBroadcastHelper broadcaster_
Constructor Detail

EditorPrefs

EditorPrefs()
Constructor

Method Detail

getUndoLevels

int getUndoLevels()

isAutoSmartQuoting

boolean isAutoSmartQuoting()

addPrefsListener

void addPrefsListener(EditorPrefs.PrefsListener listener)

removePrefsListener

void removePrefsListener(EditorPrefs.PrefsListener listener)

createPane

public javax.swing.JComponent createPane(javax.swing.JComponent dialogParent)
This method is called when the prefs window is opened. The provider should return a JComponent implementing the prefs pane, and ensure that it reflects the current settings.

Specified by:
createPane in interface com.virtuosotechnologies.asaph.maingui.PrefsPaneProvider

paneFocused

public void paneFocused()
This method is called when the pane is brought into focus.

Specified by:
paneFocused in interface com.virtuosotechnologies.asaph.maingui.PrefsPaneProvider

paneUnfocused

public void paneUnfocused()
This method is called when the pane is unfocused.

Specified by:
paneUnfocused in interface com.virtuosotechnologies.asaph.maingui.PrefsPaneProvider

paneDisposed

public void paneDisposed()
This method is called when the prefs window is closed. The provider should generally respond by defuncting the pane.

Specified by:
paneDisposed in interface com.virtuosotechnologies.asaph.maingui.PrefsPaneProvider