net.officefloor.eclipse.extension.util
Class SourceExtensionUtil

java.lang.Object
  extended by net.officefloor.eclipse.extension.util.SourceExtensionUtil

public class SourceExtensionUtil
extends Object

Utility class providing helper methods for source extension implementations.

Author:
Daniel Sagenschneider

Method Summary
static net.officefloor.compile.properties.Property createPropertyCheckbox(String label, String name, boolean defaultValue, String trueValue, String falseValue, org.eclipse.swt.widgets.Composite container, ManagedObjectSourceExtensionContext context, PropertyValueChangeListener listener)
          Creates the display for the input Property.
static net.officefloor.compile.properties.Property createPropertyCheckbox(String label, String name, boolean defaultValue, String trueValue, String falseValue, org.eclipse.swt.widgets.Composite container, WorkSourceExtensionContext context, PropertyValueChangeListener listener)
          Creates the display for the input Property.
static net.officefloor.compile.properties.Property createPropertyClass(String label, String name, org.eclipse.swt.widgets.Composite container, GovernanceSourceExtensionContext context, PropertyValueChangeListener listener)
          Creates the display for the input Property.
static net.officefloor.compile.properties.Property createPropertyClass(String label, String name, org.eclipse.swt.widgets.Composite container, ManagedObjectSourceExtensionContext context, PropertyValueChangeListener listener)
          Creates the display for the input Property.
static net.officefloor.compile.properties.Property createPropertyClass(String label, String name, org.eclipse.swt.widgets.Composite container, WorkSourceExtensionContext context, PropertyValueChangeListener listener)
          Creates the display for the input Property.
static net.officefloor.compile.properties.Property createPropertyResource(String label, String name, org.eclipse.swt.widgets.Composite container, ManagedObjectSourceExtensionContext context, PropertyValueChangeListener listener)
          Creates the display for the input Property.
static net.officefloor.compile.properties.Property createPropertyResource(String label, String name, org.eclipse.swt.widgets.Composite container, WorkSourceExtensionContext context, PropertyValueChangeListener listener)
          Creates the display for the input Property.
static net.officefloor.compile.properties.Property createPropertyText(String label, String name, String defaultValue, org.eclipse.swt.widgets.Composite container, ManagedObjectSourceExtensionContext context, PropertyValueChangeListener listener)
          Creates the display for the input Property.
static net.officefloor.compile.properties.Property createPropertyText(String label, String name, String defaultValue, org.eclipse.swt.widgets.Composite container, WorkSourceExtensionContext context, PropertyValueChangeListener listener)
          Creates the display for the input Property.
static void informNoPropertiesRequired(org.eclipse.swt.widgets.Composite container)
          Creates the display to inform that no Property instances are required.
static void loadPropertyLayout(org.eclipse.swt.widgets.Composite container)
          Loads the property layout for creating property displays.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadPropertyLayout

public static void loadPropertyLayout(org.eclipse.swt.widgets.Composite container)
Loads the property layout for creating property displays.

Parameters:
container - Composite to contain the properties.

informNoPropertiesRequired

public static void informNoPropertiesRequired(org.eclipse.swt.widgets.Composite container)
Creates the display to inform that no Property instances are required.

Parameters:
container - Composite to provide display on.

createPropertyClass

public static net.officefloor.compile.properties.Property createPropertyClass(String label,
                                                                              String name,
                                                                              org.eclipse.swt.widgets.Composite container,
                                                                              WorkSourceExtensionContext context,
                                                                              PropertyValueChangeListener listener)
Creates the display for the input Property.

Parameters:
label - Label for the Property.
name - Name of the Property.
container - Composite to add display Control instances.
context - WorkSourceExtensionContext.
listener - PropertyValueChangeListener. May be null.
Returns:
Property for the Text.

createPropertyClass

public static net.officefloor.compile.properties.Property createPropertyClass(String label,
                                                                              String name,
                                                                              org.eclipse.swt.widgets.Composite container,
                                                                              ManagedObjectSourceExtensionContext context,
                                                                              PropertyValueChangeListener listener)
Creates the display for the input Property.

Parameters:
label - Label for the Property.
name - Name of the Property.
container - Composite to add display Control instances.
context - ManagedObjectSourceExtensionContext.
listener - PropertyValueChangeListener. May be null.
Returns:
Property for the Text.

createPropertyClass

public static net.officefloor.compile.properties.Property createPropertyClass(String label,
                                                                              String name,
                                                                              org.eclipse.swt.widgets.Composite container,
                                                                              GovernanceSourceExtensionContext context,
                                                                              PropertyValueChangeListener listener)
Creates the display for the input Property.

Parameters:
label - Label for the Property.
name - Name of the Property.
container - Composite to add display Control instances.
context - GovernanceSourceExtensionContext.
listener - PropertyValueChangeListener. May be null.
Returns:
Property for the Text.

createPropertyResource

public static net.officefloor.compile.properties.Property createPropertyResource(String label,
                                                                                 String name,
                                                                                 org.eclipse.swt.widgets.Composite container,
                                                                                 WorkSourceExtensionContext context,
                                                                                 PropertyValueChangeListener listener)
Creates the display for the input Property.

Parameters:
label - Label for the Property.
name - Name of the Property.
container - Composite to add display Control instances.
context - WorkSourceExtensionContext.
listener - PropertyValueChangeListener. May be null.
Returns:
Property for the Text.

createPropertyResource

public static net.officefloor.compile.properties.Property createPropertyResource(String label,
                                                                                 String name,
                                                                                 org.eclipse.swt.widgets.Composite container,
                                                                                 ManagedObjectSourceExtensionContext context,
                                                                                 PropertyValueChangeListener listener)
Creates the display for the input Property.

Parameters:
label - Label for the Property.
name - Name of the Property.
container - Composite to add display Control instances.
context - ManagedObjectSourceExtensionContext.
listener - PropertyValueChangeListener. May be null.
Returns:
Property for the Text.

createPropertyText

public static net.officefloor.compile.properties.Property createPropertyText(String label,
                                                                             String name,
                                                                             String defaultValue,
                                                                             org.eclipse.swt.widgets.Composite container,
                                                                             ManagedObjectSourceExtensionContext context,
                                                                             PropertyValueChangeListener listener)
Creates the display for the input Property.

Parameters:
label - Label for the Property.
name - Name of the Property.
defaultValue - Default value for the Property.
container - Composite to add display Control instances.
context - ManagedObjectSourceExtensionContext.
listener - PropertyValueChangeListener. May be null.
Returns:
Property for the Text.

createPropertyText

public static net.officefloor.compile.properties.Property createPropertyText(String label,
                                                                             String name,
                                                                             String defaultValue,
                                                                             org.eclipse.swt.widgets.Composite container,
                                                                             WorkSourceExtensionContext context,
                                                                             PropertyValueChangeListener listener)
Creates the display for the input Property.

Parameters:
label - Label for the Property.
name - Name of the Property.
defaultValue - Default value for the Property.
container - Composite to add display Control instances.
context - WorkSourceExtensionContext.
listener - PropertyValueChangeListener. May be null.
Returns:
Property for the Text.

createPropertyCheckbox

public static net.officefloor.compile.properties.Property createPropertyCheckbox(String label,
                                                                                 String name,
                                                                                 boolean defaultValue,
                                                                                 String trueValue,
                                                                                 String falseValue,
                                                                                 org.eclipse.swt.widgets.Composite container,
                                                                                 ManagedObjectSourceExtensionContext context,
                                                                                 PropertyValueChangeListener listener)
Creates the display for the input Property.

Parameters:
label - Label for the Property.
name - Name of the Property.
defaultValue - Default value for the Property.
trueValue - Value should Property be checked.
falseValue - Value should Property be unchecked.
container - Composite to add display Control instances.
context - ManagedObjectSourceExtensionContext.
listener - PropertyValueChangeListener. May be null.
Returns:
Property for the SWT.CHECK Button.

createPropertyCheckbox

public static net.officefloor.compile.properties.Property createPropertyCheckbox(String label,
                                                                                 String name,
                                                                                 boolean defaultValue,
                                                                                 String trueValue,
                                                                                 String falseValue,
                                                                                 org.eclipse.swt.widgets.Composite container,
                                                                                 WorkSourceExtensionContext context,
                                                                                 PropertyValueChangeListener listener)
Creates the display for the input Property.

Parameters:
label - Label for the Property.
name - Name of the Property.
defaultValue - Default value for the Property.
trueValue - Value should Property be checked.
falseValue - Value should Property be unchecked.
container - Composite to add display Control instances.
context - WorkSourceExtensionContext.
listener - PropertyValueChangeListener. May be null.
Returns:
Property for the SWT.CHECK Button.


Copyright © 2005-2012. All Rights Reserved.