Package com.iizigo.prop
Class MultiPropEditor
java.lang.Object
com.iizigo.prop.MultiPropEditor
The property editor that edits either a single property group, or individual items. This editor is used for border, outline, etc, where a single property applies to all sides of a rectangle, or each individual one.
This editor has an expansion sign to the right of the text.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsConstructorDescriptionMultiPropEditor(PropertyEditor editor, PropertyEditorInfo info, Composite parent, PropCnr[] containers, DefinedButton definedButton, IEditedPropertyEntryMultiPropSupport multiEdit, Class<? extends GProp<?>> propItemClass, int propItemCount) Creates the multi-prop editor.Method Summary
Modifier and TypeMethodDescriptionvoidcompleteCreate(MultiPropLabel mpl, PropertyEditor.Node node) Complete the creation.voiddispose()Disposes of this instance.intGets the size of the edit-area without surrounding lines.intGets the maximum error level.String[]getItems()Gets the item texts.booleanCheck is it is expanded.voidSets the background color at focus.voidsetExpanded(boolean on, boolean redraw) Sets the expansion state.
Constructor Details
MultiPropEditor
public MultiPropEditor(PropertyEditor editor, PropertyEditorInfo info, Composite parent, PropCnr[] containers, DefinedButton definedButton, IEditedPropertyEntryMultiPropSupport multiEdit, Class<? extends GProp<?>> propItemClass, int propItemCount) Creates the multi-prop editor.
Method Details
setBackgroundColor
Sets the background color at focus.dispose
public void dispose()Disposes of this instance.completeCreate
Complete the creation.isExpanded
public boolean isExpanded()Check is it is expanded.- Returns:
- true of expanded, false if collapsed.
setExpanded
public void setExpanded(boolean on, boolean redraw) Sets the expansion state.getEditAreaHeight
public int getEditAreaHeight()Gets the size of the edit-area without surrounding lines. A single line is 16px, two lines require 2*16px+one separator line 1px (=33px), i.e. each line is 17px but first is 16px.getItems
Gets the item texts.getErrorLevel
public int getErrorLevel()Gets the maximum error level.