Package net.sourceforge.jivalo.editor

Provides the classes for lightweight text editor with syntax hightlighting, character encoding and key binding configuration support.

See:
          Description

Class Summary
JIvaloEdit Main class for jIvaloEditor standalone application.
JIvaloEditor Container class for holding editor TextPane.
JIvaloEditorDialog Provide dialog view to jIvaloEditor.
JIvaloEditorProperties jIvaloEditor preferences properties used to configure editor behavior.
MenuCloseAction  
MenuExitAction  
MenuNewAction  
MenuOpenAction  
MenuSaveAsAction  
PropertiesUtils  
TabStyle  
TextPane  
 

Package net.sourceforge.jivalo.editor Description

Provides the classes for lightweight text editor with syntax hightlighting, character encoding and key binding configuration support.

The jIvalo editor has three usage scenarios:

1. Standalone jIvaloEdit editor

    java -jar jivalo-editor-{version}.jar

2. JIvaloEditorDialog dialog

        String fileSuffix = null;
        
        try
        {
            fileSuffix = PropertiesUtils.getInstance().getEditorProperties().getSyntaxHighlightingDefault();
        } catch ( Exception e1 )
        {
            e1.printStackTrace();
        }
        
        StringBuffer method = new StringBuffer();
        
        method.append( "public boolean isValid( String param )\n" );
        method.append( "{\n" );
        method.append( "\tif ( \"TEST\".equals( param) \n" );
        method.append( "\t\treturn true\n" );
        method.append( "\treturn false\n" );
        method.append( "}\n" );
        
        final JIvaloEditorDialog dialog = 
            new JIvaloEditorDialog( frame, true, fileSuffix );
        
        dialog.setText( method.toString() );
        
        dialog.setSize(new Dimension(400, 200));
        
        dialog.setLocationRelativeTo( frame );
        
        dialog.setVisible( true );
        
        System.out.println("Text: "+dialog.getText());
                

3. JIvaloEditor JPanel subclass

        JPanel contentPane = new JPanel();
        
        contentPane.setPreferredSize( new Dimension( 600, 400 ) );
        
        contentPane.setMinimumSize( new Dimension( 340, 200 ) );
        
        contentPane.setMaximumSize( new Dimension( 1024, 768 ) );
        
        JIvaloEditor editor = new JIvaloEditor();
        
        contentPane.add( editor );

Since:
1.0


Copyright © 2006-2007 SourceForge.net. All Rights Reserved.