public class EditedPropController<PROP extends GProp<?>,PROP_VALUE> extends Object implements IContainerListenerOwner
Constructor and Description |
---|
EditedPropController(IPropertyEditorController controller,
PropertyEditorInfo info,
Atom atom,
PropCnr[] containers)
Creates the controller instance for a normal property.
|
Modifier and Type | Method and Description |
---|---|
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.
|
void |
beginOurEvent()
Begins process for private event.
|
protected PROP |
createProp(PROP_VALUE value)
Creates a property without parent.
|
void |
dispose()
Disposes of the instance.
|
void |
endOurEvent()
Completes processing of private event.
|
GProp<?>[] |
getCurrentProperties()
Gets the array of properties edited.
|
PROP_VALUE |
getCurrentValue()
Gets the current value from the property, not user input.
|
HashSet<PROP_VALUE> |
getCurrentValues()
Gets the array of values currently used.
|
IEditedPropControllerOwner<PROP,PROP_VALUE> |
getOwner()
Gets the owner of this controller.
|
PropCnr[] |
getParents()
Gets the parent property containers.
|
int |
getSeverity()
Gets the error severity.
|
int |
getSeverity(int additional)
Gets the error severity.
|
boolean |
hasEventProcessing()
Checks if there is an event already being processed.
|
boolean |
isDisposed()
Checks if disposed of.
|
boolean |
isExtended()
Gets the extended state: the master is checked in case of a
|
boolean |
isPropReadOnly()
Checks if it's read-only, i.e.
|
static boolean |
isPropReadOnly(PropCnr pc)
Checks if it's read-only, i.e.
|
void |
onContainerUpdated(boolean checkReadOnly)
Called when a change in the container that requires attention occurred.
|
void |
refreshExtended()
Refreshes the extended state.
|
void |
undefineProperty()
Undefines the property and clears potential error in the property.
|
public EditedPropController(IPropertyEditorController controller, PropertyEditorInfo info, Atom atom, PropCnr[] containers)
public boolean isDisposed()
public boolean isPropReadOnly()
public static boolean isPropReadOnly(PropCnr pc)
pc
- Container to check.public boolean isExtended()
public PropCnr[] getParents()
public GProp<?>[] getCurrentProperties()
public IEditedPropControllerOwner<PROP,PROP_VALUE> getOwner()
protected PROP createProp(PROP_VALUE value)
public void beginOurEvent()
public void endOurEvent()
public boolean hasEventProcessing()
hasEventProcessing
in interface IContainerListenerOwner
public void assignValue(PROP_VALUE value)
public void undefineProperty()
public void assignErrorWithID(String errorID, String input, String message)
public void dispose()
public PROP_VALUE getCurrentValue()
public HashSet<PROP_VALUE> getCurrentValues()
public void onContainerUpdated(boolean checkReadOnly)
onContainerUpdated
in interface IContainerListenerOwner
public void refreshExtended()
public int getSeverity()
public int getSeverity(int additional)
iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.