Tabnine Logo
Field.setVisible
Code IndexAdd Tabnine to your IDE (free)

How to use
setVisible
method
in
com.vaadin.v7.ui.Field

Best Java code snippets using com.vaadin.v7.ui.Field.setVisible (Showing top 2 results out of 315)

origin: OpenNMS/opennms

private void setVisible(Field<?> field, boolean visible) {
  field.setEnabled(visible);
  field.setRequired(visible);
  field.setVisible(visible);
}
origin: OpenNMS/opennms

/**
 * Toggles the visibility of user and password fields. The fields are shown
 * if "authenticate" checkbox is presssed. Otherwise they are not shown.
 */
private void updateAuthenticationFields(boolean visible) throws Property.ReadOnlyException, Converter.ConversionException {
  ((Field<Boolean>) configFieldGroup.getField(MetaConfigModel.AUTHENTICATE)).setValue(visible);
  configFieldGroup.getField(MetaConfigModel.USER).setVisible(visible);
  configFieldGroup.getField(MetaConfigModel.PASSWORD).setVisible(visible);
  if (!visible) {
    configFieldGroup.getField(MetaConfigModel.USER).setValue(null);
    configFieldGroup.getField(MetaConfigModel.PASSWORD).setValue(null);
  }
}
com.vaadin.v7.uiFieldsetVisible

Popular methods of Field

  • setReadOnly
  • getValue
  • setEnabled
  • getPropertyDataSource
  • isReadOnly
  • setCaption
  • validate
  • addValueChangeListener
  • discard
  • getCaption
  • getLocale
  • isModified
  • getLocale,
  • isModified,
  • isRequired,
  • isValid,
  • setRequired,
  • setValue,
  • setWidth,
  • addListener,
  • addValidator

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (Timer)
  • onCreateOptionsMenu (Activity)
  • setContentView (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Best IntelliJ 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