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 SummaryConstructorsConstructorDescription- 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 SummaryModifier and TypeMethodDescription- void- completeCreate- (MultiPropLabel mpl, PropertyEditor.Node node) Complete the creation.- void- dispose()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.- void- setExpanded- (boolean on, boolean redraw) Sets the expansion state.
- Constructor Details- MultiPropEditorpublic 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- setBackgroundColorSets the background color at focus.
- disposepublic void dispose()Disposes of this instance.
- completeCreateComplete the creation.
- isExpandedpublic boolean isExpanded()Check is it is expanded.- Returns:
- true of expanded, false if collapsed.
 
- setExpandedpublic void setExpanded- (boolean on, boolean redraw) Sets the expansion state.
- getEditAreaHeightpublic 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.
- getItemsGets the item texts.
- getErrorLevelpublic int getErrorLevel()Gets the maximum error level.