Package com.iizigo.prop
Class PropCnrEditorProperties
- java.lang.Object
- com.iizigo.prop.PropCnrEditorProperties
public class PropCnrEditorProperties extends java.lang.ObjectThe definition of the properties to edit for a property component.- Author:
- Christopher Mindus
Field Summary
Fields Modifier and Type Field Description static PropCnrEditorPropertiesEMPTYInstance for empty settings.protected java.util.ArrayList<PropertyEditorInfo>listThe info items.
Constructor Summary
Constructors Constructor Description PropCnrEditorProperties(PropCnrEditorProperties existing, boolean useGroupButtons)Creates the instance of the EditProperties for a property component from an existing definition that can receive additional setup.PropCnrEditorProperties(PropCnrEditorProperties existing, PropCnr parent, PropCnrEditorProperties pes)Create a new instance and adds the definitions from another edited property container.PropCnrEditorProperties(PropCnrEditorProperties existing, java.lang.Object[] setup)Creates the instance of the EditProperties for a property component from an existing definition that can receive additional setup.PropCnrEditorProperties(PropertyEditorSetup pes, java.lang.Object[] setup)Creates the instance of the EditProperties for a property component.PropCnrEditorProperties(PropertyEditorSetup pes, java.lang.Object[] setup, java.lang.String itemAppender)Creates the instance of the EditProperties for a property component.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.swt.graphics.ImagegetEmptySettingsImage(PropCnr property)When the group is not editable, this image is shown.java.lang.StringgetEmptySettingsMessage(PropCnr property)When the group is not editable, this message is shown.java.lang.Object[]getOriginalSetup()Returns the original setup data.PropertyEditorInfogetPropertyEditorInfo(Atom atom)Gets a PropertyEditorInfo from a property Atom.java.util.ArrayList<PropertyEditorInfo>getPropertyEditorInfos(PropCnr pc)Gets the PropertyEditorInfo array for the property editor for a single property.voidsetUseGroupButtons(boolean on)Sets the flag for group buttons.booleanuseGroupButtons()Gets the flag for group buttons.
Field Detail
EMPTY
public static final PropCnrEditorProperties EMPTY
Instance for empty settings.
list
protected final java.util.ArrayList<PropertyEditorInfo> list
The info items.
Constructor Detail
PropCnrEditorProperties
public PropCnrEditorProperties(PropertyEditorSetup pes, java.lang.Object[] setup)
Creates the instance of the EditProperties for a property component.- Parameters:
pes- The setup data for the Designer or the Plug-in.setup- This array contains the name of the property followed by a "required flag".
PropCnrEditorProperties
public PropCnrEditorProperties(PropertyEditorSetup pes, java.lang.Object[] setup, java.lang.String itemAppender)
Creates the instance of the EditProperties for a property component.- Parameters:
pes- The setup data for the Designer or the Plug-in.setup- This array contains the name of the property followed by a "required flag".
PropCnrEditorProperties
public PropCnrEditorProperties(PropCnrEditorProperties existing, java.lang.Object[] setup)
Creates the instance of the EditProperties for a property component from an existing definition that can receive additional setup.- Parameters:
existing- An existing instance to add new data to.
PropCnrEditorProperties
public PropCnrEditorProperties(PropCnrEditorProperties existing, boolean useGroupButtons)
Creates the instance of the EditProperties for a property component from an existing definition that can receive additional setup.- Parameters:
existing- An existing instance to add new data to.useGroupButtons- Flag to use group buttons or not.
PropCnrEditorProperties
public PropCnrEditorProperties(PropCnrEditorProperties existing, PropCnr parent, PropCnrEditorProperties pes)
Create a new instance and adds the definitions from another edited property container.
Method Detail
getOriginalSetup
public java.lang.Object[] getOriginalSetup()
Returns the original setup data.- Returns:
- The original setup data, null if not present.
useGroupButtons
public boolean useGroupButtons()
Gets the flag for group buttons.
setUseGroupButtons
public void setUseGroupButtons(boolean on)
Sets the flag for group buttons.
getPropertyEditorInfos
public java.util.ArrayList<PropertyEditorInfo> getPropertyEditorInfos(PropCnr pc)
Gets the PropertyEditorInfo array for the property editor for a single property.
getPropertyEditorInfo
public PropertyEditorInfo getPropertyEditorInfo(Atom atom)
Gets a PropertyEditorInfo from a property Atom.- Parameters:
atom- The atom.- Returns:
- An instance of PropertyEditorInfo if the atom is found, null otherwise.
getEmptySettingsMessage
public java.lang.String getEmptySettingsMessage(PropCnr property)
When the group is not editable, this message is shown.
getEmptySettingsImage
public org.eclipse.swt.graphics.Image getEmptySettingsImage(PropCnr property)
When the group is not editable, this image is shown.- Returns:
- null for none.