|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
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 | |
Provides the classes for lightweight text editor with syntax hightlighting, character encoding and key binding configuration support.
java -jar jivalo-editor-{version}.jar
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());
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 );
|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||