public abstract class DomUIFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ExtensionPointName<Consumer<DomUIFactory>> |
EXTENSION_POINT_NAME |
static java.lang.reflect.Method |
GET_STRING_METHOD |
static java.lang.reflect.Method |
GET_VALUE_METHOD |
static java.lang.reflect.Method |
SET_STRING_METHOD |
static java.lang.reflect.Method |
SET_VALUE_METHOD |
Constructor and Description |
---|
DomUIFactory() |
Modifier and Type | Method and Description |
---|---|
abstract CaptionComponent |
addErrorPanel(CaptionComponent captionComponent,
DomElement... elements)
Adds an error-checking square that is usually found in the top-right ange of a text editor
to the specified CaptionComponent.
|
protected abstract javax.swing.table.TableCellEditor |
createCellEditor(DomElement element,
java.lang.Class type) |
static javax.swing.table.TableCellEditor |
createCellEditor(GenericDomValue genericDomValue) |
DomUIControl |
createCollectionControl(DomElement element,
DomCollectionChildDescription description) |
ColumnInfo |
createColumnInfo(DomCollectionChildDescription description,
DomElement element) |
static DomUIControl<GenericDomValue> |
createControl(GenericDomValue element) |
static DomUIControl<GenericDomValue> |
createControl(GenericDomValue element,
boolean commitOnEveryChange) |
abstract BaseControl |
createCustomControl(java.lang.reflect.Type type,
DomWrapper<java.lang.String> wrapper,
boolean commitOnEveryChange) |
abstract BackgroundEditorHighlighter |
createDomHighlighter(Project project,
PerspectiveFileEditor editor,
DomElement element) |
abstract UserActivityWatcher |
createEditorAwareUserActivityWatcher() |
static DomUIControl |
createLargeDescriptionControl(DomElement parent,
boolean commitOnEveryChange) |
static DomUIControl |
createSmallDescriptionControl(DomElement parent,
boolean commitOnEveryChange) |
static BaseControl |
createTextControl(DomWrapper<java.lang.String> wrapper) |
abstract BaseControl |
createTextControl(DomWrapper<java.lang.String> wrapper,
boolean commitOnEveryChange) |
static BaseControl |
createTextControl(GenericDomValue value,
boolean commitOnEveryChange) |
static java.lang.reflect.Method |
findMethod(java.lang.Class clazz,
java.lang.String methodName) |
static DomUIFactory |
getDomUIFactory() |
abstract void |
registerCustomCellEditor(java.lang.Class aClass,
Function<DomElement,javax.swing.table.TableCellEditor> creator) |
abstract void |
registerCustomControl(java.lang.Class aClass,
Function<DomWrapper<java.lang.String>,BaseControl> creator) |
abstract void |
setupErrorOutdatingUserActivityWatcher(CommittablePanel panel,
DomElement... elements) |
public static final ExtensionPointName<Consumer<DomUIFactory>> EXTENSION_POINT_NAME
public static final java.lang.reflect.Method GET_VALUE_METHOD
public static final java.lang.reflect.Method SET_VALUE_METHOD
public static java.lang.reflect.Method GET_STRING_METHOD
public static java.lang.reflect.Method SET_STRING_METHOD
public static DomUIControl<GenericDomValue> createControl(GenericDomValue element)
public static DomUIControl<GenericDomValue> createControl(GenericDomValue element, boolean commitOnEveryChange)
public static DomUIControl createSmallDescriptionControl(DomElement parent, boolean commitOnEveryChange)
public static DomUIControl createLargeDescriptionControl(DomElement parent, boolean commitOnEveryChange)
public static java.lang.reflect.Method findMethod(java.lang.Class clazz, java.lang.String methodName)
public static javax.swing.table.TableCellEditor createCellEditor(GenericDomValue genericDomValue)
protected abstract javax.swing.table.TableCellEditor createCellEditor(DomElement element, java.lang.Class type)
public abstract UserActivityWatcher createEditorAwareUserActivityWatcher()
public abstract void setupErrorOutdatingUserActivityWatcher(CommittablePanel panel, DomElement... elements)
public abstract BaseControl createTextControl(DomWrapper<java.lang.String> wrapper, boolean commitOnEveryChange)
public abstract void registerCustomControl(java.lang.Class aClass, Function<DomWrapper<java.lang.String>,BaseControl> creator)
public abstract void registerCustomCellEditor(java.lang.Class aClass, Function<DomElement,javax.swing.table.TableCellEditor> creator)
public abstract BaseControl createCustomControl(java.lang.reflect.Type type, DomWrapper<java.lang.String> wrapper, boolean commitOnEveryChange)
public static BaseControl createTextControl(GenericDomValue value, boolean commitOnEveryChange)
public static BaseControl createTextControl(DomWrapper<java.lang.String> wrapper)
public static DomUIFactory getDomUIFactory()
public DomUIControl createCollectionControl(DomElement element, DomCollectionChildDescription description)
public ColumnInfo createColumnInfo(DomCollectionChildDescription description, DomElement element)
public abstract CaptionComponent addErrorPanel(CaptionComponent captionComponent, DomElement... elements)
captionComponent
- The component to add error panel toelements
- DOM elements that will be error-checkedpublic abstract BackgroundEditorHighlighter createDomHighlighter(Project project, PerspectiveFileEditor editor, DomElement element)