public interface DocumentPropertyComponent extends Component
Document
interface to use at
different places in the config tree. This is purely used by the UI.Modifier and Type | Interface and Description |
---|---|
static interface |
DocumentPropertyComponent.Constructor<PARENT extends com.speedment.internal.ui.config.DocumentProperty>
Functional interface that describes a constructor for an observable
document.
|
Lifecyclable.State
Modifier and Type | Field and Description |
---|---|
static List<String> |
COLUMNS |
static List<String> |
DBMSES |
static List<String> |
FOREIGN_KEY_COLUMNS |
static List<String> |
FOREIGN_KEYS |
static List<String> |
INDEX_COLUMNS |
static List<String> |
INDEXES |
static List<String> |
PRIMARY_KEY_COLUMNS |
static List<String> |
PROJECTS |
static List<String> |
SCHEMAS |
static List<String> |
TABLES |
LIFECYCLABLE_LOGGER
Modifier and Type | Method and Description |
---|---|
default Class<? extends Component> |
getComponentClass()
Returns the Component interface Class this Component implements.
|
<PARENT extends com.speedment.internal.ui.config.DocumentProperty> |
getConstructor(List<String> keyPath)
Creates a new observable document using the installed constructor, at
the path specified by
keyPath . |
<PARENT extends com.speedment.internal.ui.config.DocumentProperty> |
setConstructor(DocumentPropertyComponent.Constructor<PARENT> constructor,
List<String> keyPath)
Sets the method used to produce an observable view of a branch in the
tree.
|
asSoftware, defaultCopy, getSpeedment, isInternal
getState, initialize, isInitialized, isLoaded, isResolved, isStarted, isStopped, load, onInitialize, onLoad, onResolve, onStart, onStop, postStop, preInitialize, preLoad, preResolve, preStart, preStop, resolve, setState, start, stop
default Class<? extends Component> getComponentClass()
getComponentClass
in interface Component
<PARENT extends com.speedment.internal.ui.config.DocumentProperty> void setConstructor(DocumentPropertyComponent.Constructor<PARENT> constructor, List<String> keyPath)
keyPath
describes where in the tree this
method should be used. The last string in the array is the key for the
collection that is added to.
Example:
setConstructor(ProjectProperty::new);
setConstructor(DbmsProperty::new, "dbmses")
setConstructor(SchemaProperty::new, "dbmses", "schemas");
setConstructor(TableProperty::new, "dbmses", "schemas", "tables");
PARENT
- the type of the parentconstructor
- the new constructor to usekeyPath
- the path to the collection where to use it<PARENT extends com.speedment.internal.ui.config.DocumentProperty> DocumentPropertyComponent.Constructor<PARENT> getConstructor(List<String> keyPath)
keyPath
. To change the implementation, use
setConstructor(Constructor, java.util.List)
.PARENT
- the parent typekeyPath
- the path of the constructorCopyright © 2016 Speedment, Inc.. All rights reserved.