Package com.iizigo.prop
Class EditedPropController<PROP extends GProp<?>,PROP_VALUE> 
java.lang.Object
com.iizigo.prop.EditedPropController<PROP,PROP_VALUE> 
- All Implemented Interfaces:
- IContainerListenerOwner
public class EditedPropController<PROP extends GProp<?>,PROP_VALUE>  extends Object implements IContainerListenerOwner
Class used to handle the edited property for property editors. It can represent a single property value or multiple values from several selected properties being edited at once. In the latter case, there could be clashes in the values, i.e. different values.
- Author:
- Christopher Mindus
- Constructor SummaryConstructorsConstructorDescription- EditedPropController- (IPropertyEditorController controller, PropertyEditorInfo info, Atom atom, PropCnr[] containers) Creates the controller instance for a normal property.
- Method SummaryModifier and TypeMethodDescription- void- assignError- (String input, String message) Assigns an error to the property.- void- assignErrorWithID- (String errorID, String input, String message) Assigns an error to the property.- void- assignValue- (PROP_VALUE value) Assigns the value to the properties and clears potential error in the property.- voidBegins process for private event.- protected PROP- createProp- (PROP_VALUE value) Creates a property without parent.- void- dispose()Disposes of the instance.- voidCompletes processing of private event.- GProp<?>[]Gets the array of properties edited.Gets the current value from the property, not user input.Gets the array of values currently used.- getOwner()Gets the owner of this controller.- PropCnr[]Gets the parent property containers.- intGets the error severity.- int- getSeverity- (int additional) Gets the error severity.- booleanChecks if there is an event already being processed.- booleanChecks if disposed of.- booleanGets the extended state: the master is checked in case of a- booleanChecks if it's read-only, i.e.- static booleanChecks if it's read-only, i.e.- void- onContainerUpdated- (boolean checkReadOnly) Called when a change in the container that requires attention occurred.- voidRefreshes the extended state.- voidUndefines the property and clears potential error in the property.
- Constructor Details- EditedPropControllerpublic EditedPropController- (IPropertyEditorController controller, PropertyEditorInfo info, Atom atom, PropCnr[] containers) Creates the controller instance for a normal property.
 
- Method Details- isDisposedpublic boolean isDisposed()Checks if disposed of.
- isPropReadOnlypublic boolean isPropReadOnly()Checks if it's read-only, i.e. if the property is extends-private.
- isPropReadOnlyChecks if it's read-only, i.e. if the property is extends-private.- Parameters:
- pc- Container to check.
- Returns:
- true for read-only state, false for normal.
 
- isExtendedpublic boolean isExtended()Gets the extended state: the master is checked in case of a- Returns:
- true if all edited properties are extended, false otherwise.
 
- getParentsGets the parent property containers.- Returns:
- Array of property containers, at least one in length.
 
- getCurrentPropertiesGets the array of properties edited.- Returns:
- An array with all properties created for all the parents. An item in the array may be null!
 
- getOwnerGets the owner of this controller.
- createPropCreates a property without parent.
- beginOurEventpublic void beginOurEvent()Begins process for private event.
- endOurEventpublic void endOurEvent()Completes processing of private event.
- hasEventProcessingpublic boolean hasEventProcessing()Checks if there is an event already being processed.- Specified by:
- hasEventProcessingin interface- IContainerListenerOwner
 
- assignValueAssigns the value to the properties and clears potential error in the property.
- undefinePropertypublic void undefineProperty()Undefines the property and clears potential error in the property.
- assignErrorAssigns an error to the property.
- assignErrorWithIDAssigns an error to the property.
- disposepublic void dispose()Disposes of the instance.
- getCurrentValueGets the current value from the property, not user input. If several properties are selected, the value is only returned when the value is the same for all properties (otherwise null is returned).- Returns:
- The property value, or null if not defined.
 
- getCurrentValuesGets the array of values currently used. Null entries may be present.
- onContainerUpdatedpublic void onContainerUpdated- (boolean checkReadOnly) Called when a change in the container that requires attention occurred. This method is called from the SWT thread.- Specified by:
- onContainerUpdatedin interface- IContainerListenerOwner
 
- refreshExtendedpublic void refreshExtended()Refreshes the extended state.
- getSeveritypublic int getSeverity()Gets the error severity.
- getSeveritypublic int getSeverity- (int additional) Gets the error severity.