public interface Editable

Known subtypesBannerAd, VisionCameraView, ARView, CameraView, ChartComponent, Accordion, Ads, AudioRecorderComponent, ButtonList, ChatBubble, ChatInput, ChatView, CheckBoxList, ClearableTextField, FileTree, FloatingActionButton, FloatingHint, ImageViewer, InfiniteProgress, InteractionDialog, MediaPlayer, MultiButton, OnOffSwitch, OtpField, PhoneNumberField, PhoneVerification, Progress, RSSReader, RadioButtonList, ScaleImageButton, ScaleImageLabel, ShareButton, SignatureComponent, SliderBridge, SpanButton, SpanLabel, SpanMultiButton, SplitPane, StickyHeaderContainer, Switch, SwitchList, WebBrowser, LikeButton, GameView, GameSceneView, RenderView, LocationButton, MapComponent, MapView, NativeMap, TestRunnerComponent, AbstractEditorComponent, AutoCompleteTextComponent, AutoCompleteTextField, BrowserComponent, Button, Calendar, CheckBox, CodeEditor, ComboBox, CommonProgressAnimations.CircleProgress, CommonProgressAnimations.EmptyAnimation, CommonProgressAnimations.LoadingTextAnimation, CommonProgressAnimations.ProgressAnimation, Component, ComponentGroup, Container, Dialog, EditField, Form, InfiniteContainer, InputComponent, InterFormContainer, Label, List, MenuBar, PeerComponent, PickerComponent, RadioButton, RichTextArea, RichTextComponent, Sheet, SideMenuBar, Slider, SwipeableContainer, Tabs, TextArea, TextComponent, TextComponentPassword, TextField, Toolbar, Window, CodeView, EditorView, RichView, HTMLComponent, ContainerList, DefaultListCellRenderer, MultiList, Scene, BaseSpinner, DateSpinner, DateTimeSpinner, GenericSpinner, NumericSpinner, Picker, TimeSpinner, Table, Tree, EmbeddedContainer, Media360View, VRView

An interface that can be implemented to provide editing capabilities for any component in the UI. Component implements this interface, but only with empty methods. You can provide an alternative editing implementation for any Component by passing an Editable object to Component#setEditingDelegate(com.codename1.ui.Editable).

Methods

public abstract boolean isEditable()Checks whether the component is editable.
public abstract boolean isEditing()Checks whether editing is currently in progress.
public abstract void startEditingAsync()Starts editing the component.
public abstract void stopEditing(Runnable onComplete)Stops editing the component.

Method details

isEditable

public abstract boolean isEditable()
Checks whether the component is editable.

isEditing

public abstract boolean isEditing()
Checks whether editing is currently in progress.

startEditingAsync

public abstract void startEditingAsync()
Starts editing the component.

stopEditing

public abstract void stopEditing(Runnable onComplete)
Stops editing the component.

Parameters

onComplete Runnable
Optional callback that will be called after the editing is finished (as stopping may take some time for the native side to do cleanup).