Package com.iizigo.prop
Class MultiPropEditor
- java.lang.Object
- com.iizigo.prop.MultiPropEditor
 
- public class MultiPropEditor extends java.lang.ObjectThe 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- Constructors - Constructor - Description - MultiPropEditor(PropertyEditor editor, PropertyEditorInfo info, org.eclipse.swt.widgets.Composite parent, PropCnr[] containers, DefinedButton definedButton, IEditedPropertyEntryMultiPropSupport multiEdit, java.lang.Class<? extends GProp<?>> propItemClass, int propItemCount)Creates the multi-prop editor.
 - Method Summary- All Methods Instance Methods Concrete Methods - Modifier and Type - Method - Description - void- completeCreate(MultiPropLabel mpl, PropertyEditor.Node node)Complete the creation.- void- dispose()Disposes of this instance.- int- getEditAreaHeight()Gets the size of the edit-area without surrounding lines.- int- getErrorLevel()Gets the maximum error level.- java.lang.String[]- getItems()Gets the item texts.- boolean- isExpanded()Check is it is expanded.- void- setBackgroundColor(org.eclipse.swt.graphics.Color c)Sets the background color at focus.- void- setExpanded(boolean on, boolean redraw)Sets the expansion state.
 
- Constructor Detail- MultiPropEditor- public MultiPropEditor(PropertyEditor editor, PropertyEditorInfo info, org.eclipse.swt.widgets.Composite parent, PropCnr[] containers, DefinedButton definedButton, IEditedPropertyEntryMultiPropSupport multiEdit, java.lang.Class<? extends GProp<?>> propItemClass, int propItemCount) Creates the multi-prop editor.
 
 - Method Detail- setBackgroundColor- public void setBackgroundColor(org.eclipse.swt.graphics.Color c) Sets the background color at focus.
 - dispose- public void dispose() Disposes of this instance.
 - completeCreate- public void completeCreate(MultiPropLabel mpl, PropertyEditor.Node node) 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- public java.lang.String[] getItems() Gets the item texts.
 - getErrorLevel- public int getErrorLevel() Gets the maximum error level.