Tabnine Logo
EnabledIf
Code IndexAdd Tabnine to your IDE (free)

How to use
EnabledIf
in
com.palantir.ptoss.cinch.swing

Best Java code snippets using com.palantir.ptoss.cinch.swing.EnabledIf (Showing top 5 results out of 315)

origin: palantir/Cinch

final SimpleModel model2 = new SimpleModel();
@EnabledIf(to = "otherState")
final JCheckBox ocb = new JCheckBox();
@EnabledIf(to = "model1.state")
final JCheckBox cb1 = new JCheckBox();
@EnabledIf(to = "model2.state")
final JCheckBox cb2 = new JCheckBox();
origin: palantir/Cinch

public Collection<Binding> wire(final BindingContext context) {
  final List<Field> actions = context.getAnnotatedFields(EnabledIf.class);
  final List<Binding> bindings = Lists.newArrayList();
  for (final Field field : actions) {
    final EnabledIf action = field.getAnnotation(EnabledIf.class);
    final String to = action.to();
    final boolean invert = (action.type() == Type.INVERTED);
    try {
      bindings.addAll(wire(to, field, context, invert));
    } catch (final Exception e) {
      throw new BindingException("could not wire up @EnabledIf on " + field.getName(), e);
    }
  }
  return bindings;
}
origin: palantir/Cinch

@Bound(to = "someBoolean")
private final JCheckBox box = new JCheckBox("Box");
@EnabledIf(to = "someBoolean")
private final JButton button = new JButton("Button");
private final Bindings bindings = new Bindings();
origin: palantir/Cinch

@EnabledIf(to = "ready")
private final JButton sendButton = new JButton("Send");
origin: palantir/Cinch

@EnabledIf(to = "demoBoolean")
private final JButton demoButton1 = new JButton("Button 1");
@Action(call = "demoAction2")
com.palantir.ptoss.cinch.swingEnabledIf

Most used methods

  • <init>
  • to
  • type

Popular in Java

  • Making http requests using okhttp
  • onCreateOptionsMenu (Activity)
  • findViewById (Activity)
  • getApplicationContext (Context)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Kernel (java.awt.image)
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • JTable (javax.swing)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now