Tabnine Logo
BooleanProperty.getValue
Code IndexAdd Tabnine to your IDE (free)

How to use
getValue
method
in
rocks.inspectit.shared.cs.cmr.property.configuration.impl.BooleanProperty

Best Java code snippets using rocks.inspectit.shared.cs.cmr.property.configuration.impl.BooleanProperty.getValue (Showing top 2 results out of 315)

origin: inspectIT/inspectIT

/**
 * {@inheritDoc}
 */
@Override
public Control createControl(Composite parent) {
  button = new Button(parent, SWT.TOGGLE);
  button.setSelection(property.getValue().booleanValue());
  updateText();
  button.addSelectionListener(new SelectionAdapter() {
    @Override
    public void widgetSelected(SelectionEvent e) {
      updateText();
      sendPropertyUpdateEvent(Boolean.valueOf(button.getSelection()));
    }
  });
  return button;
}
origin: inspectIT/inspectIT

@Test
public void booleanPropertyUpdateXmlSaveLoad() throws PropertyValidationException, JAXBException {
  boolean value = new Random().nextBoolean();
  BooleanProperty booleanProperty = new BooleanProperty("name", "description", "logical-name", Boolean.valueOf(!value), false, false);
  AbstractPropertyUpdate<Boolean> booleanPropertyUpdate = booleanProperty.createAndValidatePropertyUpdate(Boolean.valueOf(value));
  JAXBContext context = JAXBContext.newInstance(BooleanPropertyUpdate.class);
  Marshaller marshaller = context.createMarshaller();
  Unmarshaller unmarshaller = context.createUnmarshaller();
  marshaller.marshal(booleanPropertyUpdate, f);
  Object object = unmarshaller.unmarshal(f);
  assertThat(object, is(instanceOf(BooleanPropertyUpdate.class)));
  BooleanPropertyUpdate unmarsalled = (BooleanPropertyUpdate) object;
  assertThat(booleanProperty.canUpdate(unmarsalled), is(true));
  booleanProperty.setValue(unmarsalled.getUpdateValue());
  assertThat(booleanProperty.getValue().booleanValue(), is(value));
}
rocks.inspectit.shared.cs.cmr.property.configuration.implBooleanPropertygetValue

Popular methods of BooleanProperty

  • getDefaultValue
    Gets #defaultValue.
  • <init>
  • canUpdate
  • createAndValidatePropertyUpdate
  • setValue

Popular in Java

  • Parsing JSON documents to java classes using gson
  • addToBackStack (FragmentTransaction)
  • getResourceAsStream (ClassLoader)
  • getSharedPreferences (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • JTextField (javax.swing)
  • Top plugins for Android Studio
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