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 Type
    Method
    Description
    boolean
    Checks whether the component is editable.
    boolean
    Checks whether editing is currently in progress.
    void
    Starts editing the component.
    void
    stopEditing(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

      void stopEditing(Runnable onComplete)

      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).