Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public interface EmbeddedComponents.Factory

Creates the components of one type and reads their state back.

Methods

public abstract Component create(EmbeddedComponent embedded)A component showing an embedded component’s state.
public abstract String state(Component component)The state a component holds now, to store in the document.

Method details

create

public abstract Component create(EmbeddedComponent embedded)
A component showing an embedded component’s state.

Parameters

embedded EmbeddedComponent
the embedded component, with its state and size in points

Returns

the component, or null to leave its box empty

state

public abstract String state(Component component)
The state a component holds now, to store in the document.

Parameters

component Component
a component this factory created

Returns

the state string