Package | Description |
---|---|
com.codename1.rad.attributes |
This package contains
Attribute classes for use in UI descriptors. |
com.codename1.rad.controllers |
This package contains controllers for CodeRAD applications.
|
com.codename1.rad.events |
This package contains utility classes for CodeRAD events.
|
com.codename1.rad.io | |
com.codename1.rad.models |
This package contains classes for CodeRAD models, such as
Entity , Property , and Tag . |
com.codename1.rad.nodes |
This package contains
Node classes for use inside UI descriptors. |
com.codename1.rad.propertyviews |
This package contains property views, which are used to bind UI components with model properties.
|
com.codename1.rad.ui |
This package contains the foundation classes for CodeRAD views.
|
com.codename1.rad.ui.entityviews |
This package contains entity views - view components that are bound to an Entity value model.
|
com.codename1.rad.ui.image |
This class contains subclasses of AsyncImage
|
com.codename1.rad.ui.menus |
This class contains menu components that can be bound to Actions and Action lists.
|
com.codename1.rad.ui.table |
This package contains bindable implementations of the classes in the
ca.weblite.shared.components.table package. |
Modifier and Type | Method and Description |
---|---|
String |
UIID.getValue(Entity context) |
String |
TextIcon.getValue(Entity context) |
PropertySelector |
PropertySelectorAttribute.getValue(Entity root) |
String |
Badge.getValue(Entity context) |
Constructor and Description |
---|
FieldEditorFormController(Controller parent,
Entity entity,
FieldNode fld) |
Modifier and Type | Method and Description |
---|---|
Entity |
EventContext.getEntity() |
Modifier and Type | Method and Description |
---|---|
void |
EventContext.setEntity(Entity entity) |
Constructor and Description |
---|
EventContext(Entity entity,
Component source,
ActionNode action) |
Modifier and Type | Method and Description |
---|---|
<T extends Entity> |
ParsingService.parseJSON(InputStream content,
ResultParser parser,
T entity)
Parses JSON content using the provided parser.
|
<T extends Entity> |
ParsingService.parseJSON(Reader content,
ResultParser parser,
T entity)
Parses JSON content using the provided parser.
|
<T extends Entity> |
ParsingService.parseJSON(String content,
ResultParser parser,
T entity)
Parses JSON content using the provided parser.
|
<T extends Entity> |
ParsingService.parseXML(InputStream content,
ResultParser parser,
T entity)
Parses XML content using the provided parser.
|
<T extends Entity> |
ParsingService.parseXML(Reader content,
ResultParser parser,
T entity)
Parses XML content using the provided parser.
|
<T extends Entity> |
ParsingService.parseXML(String content,
ResultParser parser,
T entity)
Parses XML content using the provided parser.
|
Modifier and Type | Method and Description |
---|---|
Entity |
ResultParser.createEntity(Class type) |
Entity |
ResultParser.parseJSON(InputStream json,
Entity dest) |
Entity |
ResultParser.parseJSON(Reader json,
Entity dest) |
Entity |
ResultParser.parseJSON(String json,
Entity dest) |
Entity |
ResultParser.parseRow(Result rowResult,
Entity rowEntity)
Parse a single row of a result into the given row entity.
|
Entity |
ResultParser.parseXML(InputStream xml,
Entity dest) |
Entity |
ResultParser.parseXML(Reader xml,
Entity dest) |
Entity |
ResultParser.parseXML(String xml,
Entity dest) |
Modifier and Type | Method and Description |
---|---|
Entity |
ResultParser.parseJSON(InputStream json,
Entity dest) |
Entity |
ResultParser.parseJSON(Reader json,
Entity dest) |
Entity |
ResultParser.parseJSON(String json,
Entity dest) |
Entity |
ResultParser.parseRow(Result rowResult,
Entity rowEntity)
Parse a single row of a result into the given row entity.
|
Entity |
ResultParser.parseXML(InputStream xml,
Entity dest) |
Entity |
ResultParser.parseXML(Reader xml,
Entity dest) |
Entity |
ResultParser.parseXML(String xml,
Entity dest) |
Modifier and Type | Method and Description |
---|---|
ResultParser |
ResultParser.entityType(Class<? extends Entity> type) |
static ResultParser |
ResultParser.resultParser(Class<? extends Entity> type) |
Modifier and Type | Class and Description |
---|---|
class |
AggregateEntityList<T extends Entity>
An entity list that automatically adds its items to its aggregate root.
|
class |
EntityList<T extends Entity>
Encapsulates a list of entities.
|
class |
EntityProperty<T extends Entity>
|
Modifier and Type | Class and Description |
---|---|
class |
Aggregate
A special type of Entity that helps to propagate changes from any entity in the aggregate to the
aggregate root.
|
class |
AggregateEntityList<T extends Entity>
An entity list that automatically adds its items to its aggregate root.
|
class |
EntityList<T extends Entity>
Encapsulates a list of entities.
|
Modifier and Type | Field and Description |
---|---|
static ContentType<Entity> |
ContentType.EntityType |
Modifier and Type | Method and Description |
---|---|
<T extends Entity> |
EntityType.entity(Class<T> type,
Attribute... atts)
Creates a new EntityProperty (i.e.
|
static <T extends Entity> |
EntityType.register(Class<T> cls,
EntityFactory factory) |
static <T extends Entity> |
EntityType.register(Class<T> cls,
EntityType et,
EntityFactory factory)
Register an entity class and its optional factory.
|
static <T extends EntityList,V extends Entity> |
EntityType.registerList(Class<T> listClass,
Class<V> rowType) |
static <T extends EntityList,V extends Entity> |
EntityType.registerList(Class<T> listClass,
Class<V> rowType,
EntityFactory factory) |
Modifier and Type | Method and Description |
---|---|
Entity |
EntityType.createEntity(Class type) |
Entity |
EntityFactory.createEntity(Class type) |
static Entity |
EntityType.createEntityForClass(Class type)
Creates an entity for the given class.
|
Entity |
EntityList.EntityEvent.getEntity() |
Entity |
PropertySelector.getEntity(Entity defaultVal)
Gets the selected property value as Entity.
|
Entity |
EntityProvider.getEntity(Entity entity) |
Entity |
Entity.getEntity(Property prop)
Gets the a property value as an Entity.
|
Entity |
Entity.getEntity(Tag... tag)
Gets the a property as an Entity.
|
Entity |
Entity.getEntityNonNull(Property prop)
Gets a property value as an Entity.
|
Entity |
PropertySelector.getLeafEntity()
Resolves the entity of this property selector.
|
Entity |
Aggregate.getRoot() |
Entity |
EntityType.newInstance()
Creates a new instance of this entity type.
|
Modifier and Type | Method and Description |
---|---|
Iterator<Entity> |
Aggregate.iterator() |
Modifier and Type | Method and Description |
---|---|
void |
Aggregate.add(Entity entity) |
void |
Entity.add(Property prop,
Entity value)
Adds an item to the given property.
|
protected void |
EntityList.fireEntityAdded(Entity e,
int index)
Fires
EntityList.EntityAddedEvent event to listeners. |
protected void |
EntityList.fireEntityRemoved(Entity e,
int index)
Fires
EntityList.EntityRemovedEvent to listeners. |
Boolean |
EntityType.getBoolean(Entity entity,
Tag... tags) |
Boolean |
EntityType.getBoolean(Property prop,
Entity entity)
Gets property value of an entity as a boolean.
|
Boolean |
EntityType.getBoolean(Tag prop,
Entity entity) |
Boolean |
EntityType.getBoolean(Tag prop,
Entity entity,
Boolean defaultVal) |
Date |
EntityType.getDate(Entity entity,
Tag... tags) |
Date |
EntityType.getDate(Property prop,
Entity entity) |
Date |
EntityType.getDate(Tag tag,
Entity entity) |
Double |
EntityType.getDouble(Entity entity,
Tag... tags) |
Double |
EntityType.getDouble(Property prop,
Entity entity)
Gets property value of an entity as a Double.
|
Double |
EntityType.getDouble(Tag prop,
Entity entity) |
Double |
EntityType.getDouble(Tag prop,
Entity entity,
Double defaultVal) |
Entity |
PropertySelector.getEntity(Entity defaultVal)
Gets the selected property value as Entity.
|
Entity |
EntityProvider.getEntity(Entity entity) |
Float |
EntityType.getFloat(Entity entity,
Tag... tags) |
Float |
EntityType.getFloat(Property prop,
Entity entity)
Gets property value of an entity as a float.
|
Float |
EntityType.getFloat(Tag prop,
Entity entity) |
Float |
EntityType.getFloat(Tag prop,
Entity entity,
Float defaultVal) |
Integer |
EntityType.getInt(Entity entity,
Tag... tags) |
Integer |
EntityType.getInt(Property prop,
Entity entity)
Gets property value of an entity as an int.
|
Integer |
EntityType.getInt(Tag prop,
Entity entity) |
Integer |
EntityType.getInt(Tag prop,
Entity entity,
Integer defaultVal) |
Long |
EntityType.getLong(Entity entity,
Tag... tags) |
Long |
EntityType.getLong(Property prop,
Entity entity)
Gets property value of an entity as a long.
|
Long |
EntityType.getLong(Tag prop,
Entity entity) |
Object |
EntityType.getPropertyValue(Entity entity,
ContentType outputType,
Tag... tags) |
Object |
EntityType.getPropertyValue(Property prop,
Entity entity,
ContentType outputType)
Gets a property value of an Entity.
|
Object |
EntityType.getPropertyValue(Tag tag,
Entity entity,
ContentType outputType) |
Object |
EntityType.getPropertyValue(Tag tag,
Entity entity,
ContentType outputType,
Object defaultVal) |
static Object |
PropertyUtil.getRawProperty(Entity entity,
Property prop)
Get the raw value of a property from an entity.
|
PropertySelector |
PropertySelectorProvider.getSelector(Entity root) |
String |
StringProvider.getString(Entity entity) |
String |
EntityType.getText(Entity entity,
Tag... tags) |
String |
EntityType.getText(Property prop,
Entity entity)
Gets property value of an entity as a string.
|
String |
EntityType.getText(Tag tag,
Entity entity) |
String |
EntityType.getText(Tag tag,
Entity entity,
String defaultVal) |
T |
Property.getValue(Entity entity) |
String |
Property.Label.getValue(Entity context) |
T |
AbstractProperty.getValue(Entity entity) |
T |
Property.Getter.getValue(Entity entity,
Property.Getter<T> defaultGetter) |
static PropertySelector |
PropertySelector.propertySelector(Entity root,
Property prop) |
static PropertySelector |
PropertySelector.propertySelector(Entity root,
Tag... tags) |
void |
Aggregate.remove(Entity entity) |
boolean |
EntityType.setBoolean(Entity entity,
boolean val,
Tag... tags) |
void |
EntityType.setBoolean(Property prop,
Entity entity,
boolean val) |
boolean |
EntityType.setBoolean(Tag prop,
Entity entity,
boolean val) |
boolean |
EntityType.setDate(Entity entity,
Date date,
Tag... tags) |
void |
EntityType.setDate(Property prop,
Entity entity,
Date date) |
boolean |
EntityType.setDate(Tag tag,
Entity entity,
Date date) |
boolean |
EntityType.setDouble(Entity entity,
double val,
Tag... tags) |
void |
EntityType.setDouble(Property prop,
Entity entity,
double val) |
boolean |
EntityType.setDouble(Tag prop,
Entity entity,
double val) |
boolean |
PropertySelector.setEntity(Entity val) |
boolean |
Entity.setEntity(Entity e,
Tag... tags)
Sets property as Entity.
|
void |
Entity.setEntity(Property prop,
Entity e)
Sets property as Entity
|
boolean |
Entity.setEntity(Tag tag,
Entity e)
Sets property as Entity.
|
boolean |
EntityType.setFloat(Entity entity,
float val,
Tag... tags) |
void |
EntityType.setFloat(Property prop,
Entity entity,
float val) |
boolean |
EntityType.setFloat(Tag prop,
Entity entity,
float val) |
boolean |
EntityType.setInt(Entity entity,
int val,
Tag... tags) |
void |
EntityType.setInt(Property prop,
Entity entity,
int value) |
boolean |
EntityType.setInt(Tag prop,
Entity entity,
int val) |
boolean |
EntityType.setLong(Entity entity,
long val,
Tag... tags) |
void |
EntityType.setLong(Property prop,
Entity entity,
long val) |
boolean |
EntityType.setLong(Tag prop,
Entity entity,
long val) |
boolean |
EntityType.setPropertyValue(Entity entity,
ContentType inputType,
Object val,
Tag... tags) |
void |
EntityType.setPropertyValue(Property prop,
Entity entity,
ContentType inputType,
Object data)
Sets a property value of an entity
|
boolean |
EntityType.setPropertyValue(Tag tag,
Entity entity,
ContentType inputType,
Object val) |
static void |
PropertyUtil.setRawProperty(Entity entity,
Property prop,
Object value)
Set the raw value of a property in an entity.
|
boolean |
EntityType.setText(Entity entity,
String text,
Tag... tags) |
void |
EntityType.setText(Property prop,
Entity entity,
String text)
Sets the property value of an entity as a string.
|
boolean |
EntityType.setText(Tag tag,
Entity entity,
String text) |
void |
Property.setValue(Entity entity,
T value) |
void |
ListProperty.setValue(Entity entity,
T value) |
void |
AbstractProperty.setValue(Entity entity,
T value) |
void |
Property.Setter.setValue(Entity entity,
T value,
Property.Setter<T> defaultSetter) |
boolean |
EntityTest.test(Entity entity) |
Modifier and Type | Method and Description |
---|---|
EntityTypeBuilder |
EntityTypeBuilder.entityClass(Class<? extends Entity> cls) |
static EntityTypeBuilder |
EntityTypeBuilder.entityTypeBuilder(Class<? extends Entity> cls) |
static EntityTypeBuilder |
Entity.entityTypeBuilder(Class<? extends Entity> cls) |
EntityTypeBuilder |
EntityTypeBuilder.rowType(Class<? extends Entity> rowType) |
Constructor and Description |
---|
Aggregate(Entity root) |
EntityAddedEvent(EntityList source,
Entity entity,
int index) |
EntityEvent(EntityList source,
Entity entity,
int index) |
EntityRemovedEvent(EntityList source,
Entity entity,
int index) |
PropertyChangeEvent(Entity source,
Property prop,
Object oldVal,
Object newVal) |
PropertySelector(Entity root,
Property property)
Creates a new property selector.
|
PropertySelector(Entity root,
Tag... tags)
Creates a new property selector
|
VetoableEntityAddedEvent(EntityList source,
Entity entity,
int index) |
VetoableEntityEvent(EntityList source,
Entity entity,
int index) |
VetoableEntityRemovedEvent(EntityList source,
Entity entity,
int index) |
VetoablePropertyChangeEvent(Entity source,
Property prop,
Object oldVal,
Object newVal) |
Modifier and Type | Method and Description |
---|---|
Entity |
ActionNode.ActionNodeEvent.getEntity() |
Modifier and Type | Method and Description |
---|---|
Command |
ActionNode.createCommand(Entity entity,
Component source) |
PropertySelector |
Node.createPropertySelector(Entity entity)
Creates a property selector on the given entity using (in order of decreasing precedence):
|
EntityView |
ViewNode.createView(Entity entity) |
Component |
ActionNode.createView(Entity entity) |
EntityView |
ViewNode.createView(Entity entity,
EntityViewFactory defaultFactory) |
ActionEvent |
ActionNode.fireEvent(Entity entity,
Component source) |
ActionEvent |
ActionNode.fireEvent(Entity entity,
Component source,
Map extraData) |
String |
ActionNode.getLabelText(Entity context) |
PropertySelector |
FieldNode.getPropertySelector(Entity context)
Gets a property selector for this field node.
|
String |
Node.getUIID(Entity context,
String defaultVal) |
boolean |
ActionNode.isEnabled(Entity entity) |
boolean |
ActionNode.isSelected(Entity entity) |
Modifier and Type | Method and Description |
---|---|
static LabelPropertyView |
LabelPropertyView.createIconLabel(Entity entity,
FieldNode iconField) |
static LabelPropertyView |
LabelPropertyView.createIconLabel(Entity entity,
PropertySelector iconProperty) |
static LabelPropertyView |
LabelPropertyView.createIconLabel(Label cmp,
Entity entity,
FieldNode iconField) |
static LabelPropertyView |
LabelPropertyView.createRoundIconLabel(Label label,
Entity entity,
PropertySelector iconProperty,
int size) |
static LabelPropertyView |
LabelPropertyView.createRoundRectIconLabel(Label label,
Entity entity,
PropertySelector iconProperty,
int width,
int height,
float cornerRadiusMM) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractEntityView<T extends Entity>
A base class for a view that can bind to an entity.
|
interface |
EntityView<T extends Entity>
An interface used by views that can bind to entities.
|
Modifier and Type | Method and Description |
---|---|
Entity |
PropertyView.getEntity() |
Modifier and Type | Method and Description |
---|---|
void |
Actions.addToContainer(Container cnt,
Entity entity) |
Component |
SettingsForm.SettingsFormActionViewFactory.createActionView(Entity entity,
ActionNode action) |
Component |
DefaultActionViewFactory.createActionView(Entity entity,
ActionNode action) |
Component |
ActionViewFactory.createActionView(Entity entity,
ActionNode action) |
PropertyView |
PropertyViewFactory.createPropertyView(Entity entity,
FieldNode field) |
PropertyView |
DefaultPropertyViewFactory.createPropertyView(Entity entity,
FieldNode field) |
EntityView |
EntityViewFactory.createView(Entity entity,
ViewNode node) |
EntityView |
DefaultEntityViewFactory.createView(Entity entity,
ViewNode node) |
Property |
ViewPropertyParameter.findProperty(Entity context) |
Actions |
Actions.getEnabled(Entity entity)
Get only the enabled actions from this actions list.
|
EntityView |
EntityListCellRenderer.getListCellRendererComponent(EntityListView list,
Entity value,
int index,
boolean isSelected,
boolean isFocused) |
EntityView |
DefaultEntityListCellRenderer.getListCellRendererComponent(EntityListView list,
Entity value,
int index,
boolean isSelected,
boolean isFocused) |
T |
ViewPropertyParameter.getValue(Entity context) |
Constructor and Description |
---|
EntityEditor(Entity entity,
Node rootNode) |
EntityEditor(Entity entity,
Node rootNode,
EntityForm form) |
EntityEditor(Entity entity,
UI uiDescriptor) |
EntityEditor(Entity entity,
UI uiDescriptor,
EntityForm form) |
EntityForm(Entity entity,
UI uiDescriptor) |
FieldEditor(Entity entity,
FieldNode field) |
PropertyView(T component,
Entity entity,
FieldNode field) |
SectionEditor(Entity entity,
SectionNode section) |
SelectForm(Entity entity,
FieldNode field) |
SettingsForm(Entity entity,
ViewNode node)
Creates a new SettingsForm to edit properties of the given entity.
|
SettingsFormActionView(Entity entity,
ActionNode action) |
SettingsFormSection(Entity entity,
SectionNode section) |
UIBuilder(Entity entity,
ViewNode parentNode) |
Modifier and Type | Class and Description |
---|---|
class |
MultiButtonEntityView<T extends Entity>
A view that renders an
Entity as a MultiButton. |
class |
WrapperEntityView<T extends Entity>
An entity view that is made explicitly to wrap another component.
|
Modifier and Type | Method and Description |
---|---|
EntityView |
ProfileListView.ProfileListRowCellRenderer.getListCellRendererComponent(EntityListView list,
Entity value,
int index,
boolean isSelected,
boolean isFocused) |
EntityView |
EntityListView.getRowViewForEntity(Entity e) |
Constructor and Description |
---|
LabelEntityView(Entity entity,
ViewNode node,
Label label,
int iconWidth,
int iconHeight) |
ProfileAvatarView(Entity entity,
float sizeMM)
Creates an avatar for the given profile entity, with the given icon diameter.
|
ProfileAvatarView(Entity entity,
Node node,
float sizeMM)
Creats an avatar for the given profile entity, with icon diameter and UI descriptor node.
|
ProfileListRowView(Entity profile,
ViewNode node,
float avatarSizeMM)
Creates a row for the given profile entity.
|
TabsEntityView(Entity entity,
ViewNode node) |
Modifier and Type | Method and Description |
---|---|
static ImageContainer |
ImageContainer.createToFileSystem(Entity entity) |
static ImageContainer |
ImageContainer.createToFileSystem(Entity entity,
Property property) |
static ImageContainer |
ImageContainer.createToFileSystem(Entity entity,
Property property,
String filePath) |
static ImageContainer |
ImageContainer.createToStorage(Entity entity) |
static ImageContainer |
ImageContainer.createToStorage(Entity entity,
Property property) |
static ImageContainer |
ImageContainer.createToStorage(Entity entity,
Property property,
String storageFile) |
Constructor and Description |
---|
ActionSheet(Sheet parent,
Entity entity,
Actions actions) |
PopupActionsMenu(Actions actions,
Entity entity,
Component source) |
Modifier and Type | Class and Description |
---|---|
class |
EntityListTableModel<T extends Entity>
A table model that allows using a
Table to render and edit an EntityList. |
Copyright © 2021. All Rights Reserved.