Interface Editable
- All Known Implementing Classes:
Accordion, Ads, AudioRecorderComponent, AutoCompleteTextComponent, AutoCompleteTextField, BaseSpinner, BrowserComponent, Button, ButtonList, Calendar, ChartComponent, CheckBox, CheckBoxList, ClearableTextField, ComboBox, CommonProgressAnimations.CircleProgress, CommonProgressAnimations.EmptyAnimation, CommonProgressAnimations.LoadingTextAnimation, CommonProgressAnimations.ProgressAnimation, Component, ComponentGroup, Container, ContainerList, DateSpinner, DateTimeSpinner, DefaultListCellRenderer, Dialog, EmbeddedContainer, FileTree, FloatingActionButton, FloatingHint, Form, GenericSpinner, HTMLComponent, ImageViewer, InfiniteContainer, InfiniteProgress, InputComponent, InteractionDialog, InterFormContainer, Label, LikeButton, List, MapComponent, MediaPlayer, MenuBar, MultiButton, MultiList, NumericSpinner, OnOffSwitch, PeerComponent, Picker, PickerComponent, Progress, RadioButton, RadioButtonList, RSSReader, ScaleImageButton, ScaleImageLabel, Scene, ShareButton, Sheet, SideMenuBar, SignatureComponent, Slider, SliderBridge, SpanButton, SpanLabel, SpanMultiButton, SplitPane, SwipeableContainer, Switch, SwitchList, Table, Tabs, TestRunnerComponent, TextArea, TextComponent, TextComponentPassword, TextField, TimeSpinner, Toolbar, Tree, WebBrowser
public interface Editable
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).-
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether the component is editable.booleanChecks whether editing is currently in progress.voidStarts editing the component.voidstopEditing(Runnable onComplete) Stops editing the component.
-
Method Details
-
isEditable
boolean isEditable()Checks whether the component is editable. -
isEditing
boolean isEditing()Checks whether editing is currently in progress. -
startEditingAsync
void startEditingAsync()Starts editing the component. -
stopEditing
Stops editing the component.
Parameters
onComplete: @param onComplete Optional callback that will be called after the editing is finished (as stopping may take some time for the native side to do cleanup).
-