org.pdfsam.guiclient.commons.components
Class CommonComponentsFactory

java.lang.Object
  extended by org.pdfsam.guiclient.commons.components.CommonComponentsFactory

public class CommonComponentsFactory
extends java.lang.Object

Factory for components commonly used by plugins

Author:
Andrea Vacondio

Field Summary
static int ADD_BUTTON_TYPE
           
static int BROWSE_BUTTON_TYPE
           
static int COMPRESS_CHECKBOX_TYPE
           
static int DESTINATION_TEXT_FIELD_TYPE
           
static int DONT_PRESERVER_ORDER_CHECKBOX_TYPE
           
static int OVERWRITE_CHECKBOX_TYPE
           
static int PDF_VERSION_LABEL
           
static int PREFIX_TEXT_FIELD_TYPE
           
static int PREFIX_TEXT_FIELD_TYPE_FULL_MENU
           
static int RUN_BUTTON_TYPE
           
static int SIMPLE_TEXT_FIELD_TYPE
           
 
Method Summary
 java.lang.Object clone()
           
 javax.swing.JButton createButton(int buttonType)
           
 javax.swing.JCheckBox createCheckBox(int checkboxType)
           
 javax.swing.JLabel createLabel(int labelType)
           
 javax.swing.JTextField createTextField(int textFieldType)
           
static CommonComponentsFactory getInstance()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIMPLE_TEXT_FIELD_TYPE

public static final int SIMPLE_TEXT_FIELD_TYPE
See Also:
Constant Field Values

DESTINATION_TEXT_FIELD_TYPE

public static final int DESTINATION_TEXT_FIELD_TYPE
See Also:
Constant Field Values

PREFIX_TEXT_FIELD_TYPE

public static final int PREFIX_TEXT_FIELD_TYPE
See Also:
Constant Field Values

PREFIX_TEXT_FIELD_TYPE_FULL_MENU

public static final int PREFIX_TEXT_FIELD_TYPE_FULL_MENU
See Also:
Constant Field Values

RUN_BUTTON_TYPE

public static final int RUN_BUTTON_TYPE
See Also:
Constant Field Values

BROWSE_BUTTON_TYPE

public static final int BROWSE_BUTTON_TYPE
See Also:
Constant Field Values

ADD_BUTTON_TYPE

public static final int ADD_BUTTON_TYPE
See Also:
Constant Field Values

OVERWRITE_CHECKBOX_TYPE

public static final int OVERWRITE_CHECKBOX_TYPE
See Also:
Constant Field Values

COMPRESS_CHECKBOX_TYPE

public static final int COMPRESS_CHECKBOX_TYPE
See Also:
Constant Field Values

DONT_PRESERVER_ORDER_CHECKBOX_TYPE

public static final int DONT_PRESERVER_ORDER_CHECKBOX_TYPE
See Also:
Constant Field Values

PDF_VERSION_LABEL

public static final int PDF_VERSION_LABEL
See Also:
Constant Field Values
Method Detail

getInstance

public static CommonComponentsFactory getInstance()
Returns:
the instance of CommonComponentsFactory

createButton

public javax.swing.JButton createButton(int buttonType)
Parameters:
buttonType -
Returns:
a button instance

createCheckBox

public javax.swing.JCheckBox createCheckBox(int checkboxType)
Parameters:
checkboxType -
Returns:
a JCheckBox instance

createLabel

public javax.swing.JLabel createLabel(int labelType)
Parameters:
labelType -
Returns:
a JLabel instance

createTextField

public javax.swing.JTextField createTextField(int textFieldType)
Parameters:
textFieldType -
Returns:
a JTextField instance

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException