com.raelity.jvi
Class OptionsBeanBase

java.lang.Object
  extended by java.beans.SimpleBeanInfo
      extended by com.raelity.jvi.OptionsBeanBase
All Implemented Interfaces:
BeanInfo
Direct Known Subclasses:
OptionsBean.CursorWrap, OptionsBean.Debug, OptionsBean.ExternalProcess, OptionsBean.General, OptionsBean.Modify, OptionsBean.Platform, OptionsBean.Search

public class OptionsBeanBase
extends SimpleBeanInfo

Base class for jVi options beans. This method contains the read/write methods for all options. Which options are made visible is controlled by the optionsList given to the contstructor. Using this class, options are grouped into different beans.


Field Summary
 
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
Constructor Summary
OptionsBeanBase(Class clazz, String displayName, Options.Category category)
          Creates a new instance of OptionsBeanBase
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
           
 void addVetoableChangeListener(VetoableChangeListener listener)
           
static PropertyDescriptor createPropertyDescriptor(String optName, String methodName, Class clazz)
           
 BeanDescriptor getBeanDescriptor()
           
protected  boolean getboolean(String name)
           
protected  Color getColor(String name)
           
 Image getIcon(int type)
           
protected  int getint(String name)
           
 String getJViVersion()
          this read-only option is special cased
 PropertyDescriptor[] getPropertyDescriptors()
           
protected  String getString(String name)
           
 boolean getViAutoPopupFN()
           
 int getViBackspace()
           
 boolean getViBackspaceWrapPrevious()
           
 boolean getViChangeWordBlanks()
           
 boolean getViClassicUndo()
           
 boolean getViCommandEntryFrameOption()
           
 boolean getViCoordSkip()
           
 boolean getViDbgBang()
           
 boolean getViDbgBangData()
           
 boolean getViDbgCache()
           
 boolean getViDbgCompletion()
           
 boolean getViDbgCoordSkip()
           
 boolean getViDbgEditorActivation()
           
 boolean getViDbgKeyStrokes()
           
 boolean getViDbgMouse()
           
 boolean getViDbgRedo()
           
 boolean getViEndOfSentence()
           
 String getViEqualProgram()
           
 boolean getViExpandTabs()
           
 String getViFormatProgram()
           
 boolean getViHighlightSearch()
           
 boolean getViHWrapPrevious()
           
 boolean getViIgnoreCase()
           
 boolean getViIncrSearch()
           
 boolean getViInsertLeftWrapPrevious()
           
 boolean getViInsertRightWrapNext()
           
 boolean getViJoinSpaces()
           
 boolean getViLeftWrapPrevious()
           
 boolean getViLWrapNext()
           
 boolean getViMetaEquals()
           
 String getViMetaEscape()
           
 boolean getViModeline()
           
 int getViModelines()
           
 boolean getViNotStartOfLine()
           
 boolean getViPCMarkTrack()
           
 boolean getViPlatformBraceMatch()
           
 boolean getViPlatformPreferences()
           
 boolean getViReadOnlyHack()
           
 boolean getViRedoTrack()
           
 int getViReport()
           
 boolean getViRightWrapNext()
           
 int getViScrollOff()
           
 boolean getViSearchFromEnd()
           
 Color getViSelectColor()
           
 Color getViSelectFgColor()
           
 String getViSelection()
           
 boolean getViSelectMode()
           
 String getViShell()
           
 String getViShellCmdFlag()
           
 boolean getViShellSlash()
           
 String getViShellXQuote()
           
 boolean getViShiftRound()
           
 int getViShiftWidth()
           
 boolean getViShowCommand()
           
 boolean getViShowMode()
           
 boolean getViSpaceWrapNext()
           
 int getViTabStop()
           
 int getViTextWidth()
           
 boolean getViTildeOperator()
           
 boolean getViTildeWrapNext()
           
 boolean getViUnnamedClipboard()
           
 boolean getViWrapScan()
           
protected  void put(String name, boolean val)
           
protected  void put(String name, Color val)
           
protected  void put(String name, int val)
           
protected  void put(String name, String val)
           
 void removePropertyChangeListener(PropertyChangeListener listener)
           
 void removeVetoableChangeListener(VetoableChangeListener listener)
           
 void setViAutoPopupFN(boolean arg)
           
 void setViBackspace(int arg)
           
 void setViBackspaceWrapPrevious(boolean arg)
           
 void setViChangeWordBlanks(boolean arg)
           
 void setViClassicUndo(boolean arg)
           
 void setViCommandEntryFrameOption(boolean arg)
           
 void setViCoordSkip(boolean arg)
           
 void setViDbgBang(boolean arg)
           
 void setViDbgBangData(boolean arg)
           
 void setViDbgCache(boolean arg)
           
 void setViDbgCompletion(boolean arg)
           
 void setViDbgCoordSkip(boolean arg)
           
 void setViDbgEditorActivation(boolean arg)
           
 void setViDbgKeyStrokes(boolean arg)
           
 void setViDbgMouse(boolean arg)
           
 void setViDbgRedo(boolean arg)
           
 void setViEndOfSentence(boolean arg)
           
 void setViEqualProgram(String arg)
           
 void setViExpandTabs(boolean arg)
           
 void setViFormatProgram(String arg)
           
 void setViHighlightSearch(boolean arg)
           
 void setViHWrapPrevious(boolean arg)
           
 void setViIgnoreCase(boolean arg)
           
 void setViIncrSearch(boolean arg)
           
 void setViInsertLeftWrapPrevious(boolean arg)
           
 void setViInsertRightWrapNext(boolean arg)
           
 void setViJoinSpaces(boolean arg)
           
 void setViLeftWrapPrevious(boolean arg)
           
 void setViLWrapNext(boolean arg)
           
 void setViMetaEquals(boolean arg)
           
 void setViMetaEscape(String arg)
           
 void setViModeline(boolean arg)
           
 void setViModelines(int arg)
           
 void setViNotStartOfLine(boolean arg)
           
 void setViPCMarkTrack(boolean arg)
           
 void setViPlatformBraceMatch(boolean arg)
           
 void setViPlatformPreferences(boolean arg)
           
 void setViReadOnlyHack(boolean arg)
           
 void setViRedoTrack(boolean arg)
           
 void setViReport(int arg)
           
 void setViRightWrapNext(boolean arg)
           
 void setViScrollOff(int arg)
           
 void setViSearchFromEnd(boolean arg)
           
 void setViSelectColor(Color arg)
           
 void setViSelectFgColor(Color arg)
           
 void setViSelection(String arg)
           
 void setViSelectMode(boolean arg)
           
 void setViShell(String arg)
           
 void setViShellCmdFlag(String arg)
           
 void setViShellSlash(boolean arg)
           
 void setViShellXQuote(String arg)
           
 void setViShiftRound(boolean arg)
           
 void setViShiftWidth(int arg)
           
 void setViShowCommand(boolean arg)
           
 void setViShowMode(boolean arg)
           
 void setViSpaceWrapNext(boolean arg)
           
 void setViTabStop(int arg)
           
 void setViTextWidth(int arg)
           
 void setViTildeOperator(boolean arg)
           
 void setViTildeWrapNext(boolean arg)
           
 void setViUnnamedClipboard(boolean arg)
           
 void setViWrapScan(boolean arg)
           
 
Methods inherited from class java.beans.SimpleBeanInfo
getAdditionalBeanInfo, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getMethodDescriptors, loadImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptionsBeanBase

public OptionsBeanBase(Class clazz,
                       String displayName,
                       Options.Category category)
Creates a new instance of OptionsBeanBase

Method Detail

getBeanDescriptor

public BeanDescriptor getBeanDescriptor()
Specified by:
getBeanDescriptor in interface BeanInfo
Overrides:
getBeanDescriptor in class SimpleBeanInfo

getPropertyDescriptors

public PropertyDescriptor[] getPropertyDescriptors()
Specified by:
getPropertyDescriptors in interface BeanInfo
Overrides:
getPropertyDescriptors in class SimpleBeanInfo

createPropertyDescriptor

public static PropertyDescriptor createPropertyDescriptor(String optName,
                                                          String methodName,
                                                          Class clazz)
                                                   throws IntrospectionException
Throws:
IntrospectionException

getIcon

public Image getIcon(int type)
Specified by:
getIcon in interface BeanInfo
Overrides:
getIcon in class SimpleBeanInfo

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)

addVetoableChangeListener

public void addVetoableChangeListener(VetoableChangeListener listener)

removeVetoableChangeListener

public void removeVetoableChangeListener(VetoableChangeListener listener)

put

protected void put(String name,
                   String val)
            throws PropertyVetoException
Throws:
PropertyVetoException

put

protected void put(String name,
                   int val)
            throws PropertyVetoException
Throws:
PropertyVetoException

put

protected void put(String name,
                   Color val)
            throws PropertyVetoException
Throws:
PropertyVetoException

put

protected void put(String name,
                   boolean val)

getString

protected String getString(String name)

getint

protected int getint(String name)

getColor

protected Color getColor(String name)

getboolean

protected boolean getboolean(String name)

getJViVersion

public String getJViVersion()
this read-only option is special cased


setViCoordSkip

public void setViCoordSkip(boolean arg)
                    throws PropertyVetoException
Throws:
PropertyVetoException

getViCoordSkip

public boolean getViCoordSkip()

setViPlatformPreferences

public void setViPlatformPreferences(boolean arg)
                              throws PropertyVetoException
Throws:
PropertyVetoException

getViPlatformPreferences

public boolean getViPlatformPreferences()

setViDbgCoordSkip

public void setViDbgCoordSkip(boolean arg)
                       throws PropertyVetoException
Throws:
PropertyVetoException

getViDbgCoordSkip

public boolean getViDbgCoordSkip()

setViAutoPopupFN

public void setViAutoPopupFN(boolean arg)
                      throws PropertyVetoException
Throws:
PropertyVetoException

getViAutoPopupFN

public boolean getViAutoPopupFN()

setViPlatformBraceMatch

public void setViPlatformBraceMatch(boolean arg)
                             throws PropertyVetoException
Throws:
PropertyVetoException

getViPlatformBraceMatch

public boolean getViPlatformBraceMatch()

setViShell

public void setViShell(String arg)
                throws PropertyVetoException
Throws:
PropertyVetoException

getViShell

public String getViShell()

setViShellCmdFlag

public void setViShellCmdFlag(String arg)
                       throws PropertyVetoException
Throws:
PropertyVetoException

getViShellCmdFlag

public String getViShellCmdFlag()

setViShellXQuote

public void setViShellXQuote(String arg)
                      throws PropertyVetoException
Throws:
PropertyVetoException

getViShellXQuote

public String getViShellXQuote()

setViShellSlash

public void setViShellSlash(boolean arg)
                     throws PropertyVetoException
Throws:
PropertyVetoException

getViShellSlash

public boolean getViShellSlash()

setViEqualProgram

public void setViEqualProgram(String arg)
                       throws PropertyVetoException
Throws:
PropertyVetoException

getViEqualProgram

public String getViEqualProgram()

setViFormatProgram

public void setViFormatProgram(String arg)
                        throws PropertyVetoException
Throws:
PropertyVetoException

getViFormatProgram

public String getViFormatProgram()

setViTextWidth

public void setViTextWidth(int arg)
                    throws PropertyVetoException
Throws:
PropertyVetoException

getViTextWidth

public int getViTextWidth()

setViModeline

public void setViModeline(boolean arg)
                   throws PropertyVetoException
Throws:
PropertyVetoException

getViModeline

public boolean getViModeline()

setViModelines

public void setViModelines(int arg)
                    throws PropertyVetoException
Throws:
PropertyVetoException

getViModelines

public int getViModelines()

setViRedoTrack

public void setViRedoTrack(boolean arg)
                    throws PropertyVetoException
Throws:
PropertyVetoException

getViRedoTrack

public boolean getViRedoTrack()

setViPCMarkTrack

public void setViPCMarkTrack(boolean arg)
                      throws PropertyVetoException
Throws:
PropertyVetoException

getViPCMarkTrack

public boolean getViPCMarkTrack()

setViInsertLeftWrapPrevious

public void setViInsertLeftWrapPrevious(boolean arg)
                                 throws PropertyVetoException
Throws:
PropertyVetoException

getViInsertLeftWrapPrevious

public boolean getViInsertLeftWrapPrevious()

setViInsertRightWrapNext

public void setViInsertRightWrapNext(boolean arg)
                              throws PropertyVetoException
Throws:
PropertyVetoException

getViInsertRightWrapNext

public boolean getViInsertRightWrapNext()

setViSelectColor

public void setViSelectColor(Color arg)
                      throws PropertyVetoException
Throws:
PropertyVetoException

getViSelectColor

public Color getViSelectColor()

setViSelectFgColor

public void setViSelectFgColor(Color arg)
                        throws PropertyVetoException
Throws:
PropertyVetoException

getViSelectFgColor

public Color getViSelectFgColor()

setViSelection

public void setViSelection(String arg)
                    throws PropertyVetoException
Throws:
PropertyVetoException

getViSelection

public String getViSelection()

setViIncrSearch

public void setViIncrSearch(boolean arg)

getViIncrSearch

public boolean getViIncrSearch()

setViSelectMode

public void setViSelectMode(boolean arg)

getViSelectMode

public boolean getViSelectMode()

setViEndOfSentence

public void setViEndOfSentence(boolean arg)

getViEndOfSentence

public boolean getViEndOfSentence()

setViHighlightSearch

public void setViHighlightSearch(boolean arg)

getViHighlightSearch

public boolean getViHighlightSearch()

setViShowCommand

public void setViShowCommand(boolean arg)

getViShowCommand

public boolean getViShowCommand()

setViShowMode

public void setViShowMode(boolean arg)

getViShowMode

public boolean getViShowMode()

setViCommandEntryFrameOption

public void setViCommandEntryFrameOption(boolean arg)

getViCommandEntryFrameOption

public boolean getViCommandEntryFrameOption()

setViBackspaceWrapPrevious

public void setViBackspaceWrapPrevious(boolean arg)

getViBackspaceWrapPrevious

public boolean getViBackspaceWrapPrevious()

setViHWrapPrevious

public void setViHWrapPrevious(boolean arg)

getViHWrapPrevious

public boolean getViHWrapPrevious()

setViLeftWrapPrevious

public void setViLeftWrapPrevious(boolean arg)

getViLeftWrapPrevious

public boolean getViLeftWrapPrevious()

setViSpaceWrapNext

public void setViSpaceWrapNext(boolean arg)

getViSpaceWrapNext

public boolean getViSpaceWrapNext()

setViLWrapNext

public void setViLWrapNext(boolean arg)

getViLWrapNext

public boolean getViLWrapNext()

setViRightWrapNext

public void setViRightWrapNext(boolean arg)

getViRightWrapNext

public boolean getViRightWrapNext()

setViTildeWrapNext

public void setViTildeWrapNext(boolean arg)

getViTildeWrapNext

public boolean getViTildeWrapNext()

setViUnnamedClipboard

public void setViUnnamedClipboard(boolean arg)

getViUnnamedClipboard

public boolean getViUnnamedClipboard()

setViJoinSpaces

public void setViJoinSpaces(boolean arg)

getViJoinSpaces

public boolean getViJoinSpaces()

setViShiftRound

public void setViShiftRound(boolean arg)

getViShiftRound

public boolean getViShiftRound()

setViNotStartOfLine

public void setViNotStartOfLine(boolean arg)

getViNotStartOfLine

public boolean getViNotStartOfLine()

setViChangeWordBlanks

public void setViChangeWordBlanks(boolean arg)

getViChangeWordBlanks

public boolean getViChangeWordBlanks()

setViTildeOperator

public void setViTildeOperator(boolean arg)

getViTildeOperator

public boolean getViTildeOperator()

setViSearchFromEnd

public void setViSearchFromEnd(boolean arg)

getViSearchFromEnd

public boolean getViSearchFromEnd()

setViWrapScan

public void setViWrapScan(boolean arg)

getViWrapScan

public boolean getViWrapScan()

setViMetaEquals

public void setViMetaEquals(boolean arg)

getViMetaEquals

public boolean getViMetaEquals()

setViMetaEscape

public void setViMetaEscape(String arg)
                     throws PropertyVetoException
Throws:
PropertyVetoException

getViMetaEscape

public String getViMetaEscape()

setViIgnoreCase

public void setViIgnoreCase(boolean arg)

getViIgnoreCase

public boolean getViIgnoreCase()

setViExpandTabs

public void setViExpandTabs(boolean arg)

getViExpandTabs

public boolean getViExpandTabs()

setViReport

public void setViReport(int arg)
                 throws PropertyVetoException
Throws:
PropertyVetoException

getViReport

public int getViReport()

setViBackspace

public void setViBackspace(int arg)
                    throws PropertyVetoException
Throws:
PropertyVetoException

getViBackspace

public int getViBackspace()

setViScrollOff

public void setViScrollOff(int arg)
                    throws PropertyVetoException
Throws:
PropertyVetoException

getViScrollOff

public int getViScrollOff()

setViShiftWidth

public void setViShiftWidth(int arg)
                     throws PropertyVetoException
Throws:
PropertyVetoException

getViShiftWidth

public int getViShiftWidth()

setViTabStop

public void setViTabStop(int arg)
                  throws PropertyVetoException
Throws:
PropertyVetoException

getViTabStop

public int getViTabStop()

setViReadOnlyHack

public void setViReadOnlyHack(boolean arg)

getViReadOnlyHack

public boolean getViReadOnlyHack()

setViClassicUndo

public void setViClassicUndo(boolean arg)

getViClassicUndo

public boolean getViClassicUndo()

setViDbgMouse

public void setViDbgMouse(boolean arg)

getViDbgMouse

public boolean getViDbgMouse()

setViDbgKeyStrokes

public void setViDbgKeyStrokes(boolean arg)

getViDbgKeyStrokes

public boolean getViDbgKeyStrokes()

setViDbgCache

public void setViDbgCache(boolean arg)

getViDbgCache

public boolean getViDbgCache()

setViDbgBang

public void setViDbgBang(boolean arg)

getViDbgBang

public boolean getViDbgBang()

setViDbgBangData

public void setViDbgBangData(boolean arg)

getViDbgBangData

public boolean getViDbgBangData()

setViDbgEditorActivation

public void setViDbgEditorActivation(boolean arg)

getViDbgEditorActivation

public boolean getViDbgEditorActivation()

setViDbgCompletion

public void setViDbgCompletion(boolean arg)
                        throws PropertyVetoException
Throws:
PropertyVetoException

getViDbgCompletion

public boolean getViDbgCompletion()

setViDbgRedo

public void setViDbgRedo(boolean arg)
                  throws PropertyVetoException
Throws:
PropertyVetoException

getViDbgRedo

public boolean getViDbgRedo()