Codota Logo
Composite.setVisible
Code IndexAdd Codota to your IDE (free)

How to use
setVisible
method
in
org.eclipse.swt.widgets.Composite

Best Java code snippets using org.eclipse.swt.widgets.Composite.setVisible (Showing top 20 results out of 459)

  • Common ways to obtain Composite
private void myMethod () {
Composite c =
  • Codota IconControl control;control.getParent()
  • Codota IconStatusDialog zuper;(Composite) zuper.createDialogArea(parent)
  • Codota IconTitleAreaDialog zuper;(Composite) zuper.createDialogArea(parent)
  • Smart code suggestions by Codota
}
origin: pentaho/pentaho-kettle

 @Override public void widgetSelected( SelectionEvent selectionEvent ) {
  wcLocal.setVisible( wbLocal.getSelection() );
  wcPentaho.setVisible( wbPentaho.getSelection() );
  wcRemote.setVisible( wbRemote.getSelection() );
  defaultRunConfiguration.setLocal( false );
  defaultRunConfiguration.setPentaho( true );
  defaultRunConfiguration.setRemote( false );
  defaultRunConfiguration.setClustered( false );
  checkOKEnabled();
 }
} );
origin: pentaho/pentaho-kettle

 @Override public void widgetSelected( SelectionEvent selectionEvent ) {
  wcLocal.setVisible( wbLocal.getSelection() );
  wcPentaho.setVisible( wbPentaho.getSelection() );
  wcRemote.setVisible( wbRemote.getSelection() );
  defaultRunConfiguration.setLocal( true );
  defaultRunConfiguration.setPentaho( false );
  defaultRunConfiguration.setRemote( false );
  defaultRunConfiguration.setClustered( false );
  checkOKEnabled();
 }
} );
origin: pentaho/pentaho-kettle

 @Override public void widgetSelected( SelectionEvent selectionEvent ) {
  for ( Control control : contentArea.getChildren() ) {
   control.setVisible( false );
  }
  content.setVisible( true );
 }
} );
origin: pentaho/pentaho-kettle

public void openSpoon() {
 shell = getShell();
 shell.setText( APP_TITLE );
 mainComposite.setRedraw( true );
 mainComposite.setVisible( false );
 mainComposite.setVisible( true );
 mainComposite.redraw();
 // Perhaps the transformation contains elements at startup?
 refreshTree(); // Do a complete refresh then...
 setShellText();
}
origin: pentaho/pentaho-kettle

 @Override public void mouseUp( MouseEvent mouseEvent ) {
  MappingIODefinition definition = new MappingIODefinition();
  definition.setMainDataPath( true );
  definitions.add( definition );
  wInputList.add( tabTitle + ( definitions.size() > 1 ? String.valueOf( definitions.size() ) : "" ) );
  wInputList.select( definitions.size() - 1 );
  updateFields( definitions.get( wInputList.getSelectionIndex() ), input, wMainPath, wlInputStep, wInputStep,
   wbInputStep, wlOutputStep, wOutputStep,
   wbOutputStep, wlDescription, wDescription, wFieldMappings, wRenameOutput );
  wlNoItems.setVisible( false );
  wFieldsComposite.setVisible( true );
  wRemoveButton.setEnabled( true );
 }
} );
origin: pentaho/pentaho-kettle

public Composite createContent( String radioText ) {
 Control[] existingButtons = radioGroup.getChildren();
 Button button = new Button( radioGroup, SWT.RADIO );
 button.setText( radioText );
 props.setLook( button );
 FormData fdButton = new FormData();
 fdButton.top = new FormAttachment( 0 );
 fdButton.left = existingButtons.length == 0
  ? new FormAttachment( 0 ) : new FormAttachment( existingButtons[existingButtons.length - 1], 40 );
 button.setLayoutData( fdButton );
 button.setSelection( existingButtons.length == 0 );
 Composite content = new Composite( contentArea, SWT.NONE );
 content.setVisible( existingButtons.length == 0 );
 props.setLook( content );
 content.setLayout( noMarginLayout );
 content.setLayoutData( fdMaximize );
 button.addSelectionListener( new SelectionAdapter() {
  @Override public void widgetSelected( SelectionEvent selectionEvent ) {
   for ( Control control : contentArea.getChildren() ) {
    control.setVisible( false );
   }
   content.setVisible( true );
  }
 } );
 return content;
}
origin: pentaho/pentaho-kettle

 @Override public void setVisible( boolean visible ) {
  super.setVisible( visible );
  wAuthGroup.setVisible( visible );
  wlUsername.setVisible( visible );
  wUsername.setVisible( visible );
  wlPassword.setVisible( visible );
  wPassword.setVisible( visible );
 }
}
origin: pentaho/pentaho-kettle

wFieldsComposite.setVisible( false );
wRemoveButton.setEnabled( false );
origin: pentaho/pentaho-kettle

@Override public void widgetSelected( SelectionEvent selectionEvent ) {
 wcLocal.setVisible( wbLocal.getSelection() );
 wcPentaho.setVisible( wbPentaho.getSelection() );
 wcRemote.setVisible( wbRemote.getSelection() );
 defaultRunConfiguration.setLocal( false );
 defaultRunConfiguration.setPentaho( false );
origin: pentaho/pentaho-kettle

/**
 * hideExpandedContent( TransGraph graph )
 * 
 * @param graph
 *          the TransGraph whose web browser will be hidden
 */
public static void hideExpandedContent( TransGraph graph ) {
 doToExpandedContent( graph, browser -> {
  if ( Const.isOSX() && graph.isExecutionResultsPaneVisible() ) {
   graph.extraViewComposite.setVisible( true );
  }
  browser.moveBelow( null );
  browser.getParent().layout( true, true );
  browser.getParent().redraw();
 } );
}
origin: pentaho/pentaho-kettle

wcLocal.setVisible( defaultRunConfiguration.isLocal() );
wcPentaho.setVisible( defaultRunConfiguration.isPentaho() );
wcRemote.setVisible( defaultRunConfiguration.isRemote() || defaultRunConfiguration.isClustered() );
origin: pentaho/pentaho-kettle

/**
 * showExpandedContent( TransGraph graph )
 * 
 * @param graph
 *          TransGraph to create the web browser for. If the wev browser hasn't been created this will create one.
 *          Else it will just bring the web browser associated to this TransGraph to the top.
 */
public static void showExpandedContent( TransGraph graph ) {
 if ( graph == null ) {
  return;
 }
 Browser browser = getExpandedContentForTransGraph( graph );
 if ( browser == null ) {
  return;
 }
 if ( !isVisible( graph ) ) {
  maximizeExpandedContent( browser );
 }
 if ( Const.isOSX() && graph.isExecutionResultsPaneVisible() ) {
  graph.extraViewComposite.setVisible( false );
 }
 browser.moveAbove( null );
 browser.getParent().layout( true );
 browser.getParent().redraw();
}
origin: pentaho/pentaho-kettle

} else {
 wlNoItems.setVisible( true );
 wFieldsComposite.setVisible( false );
 wRemoveButton.setEnabled( false );
origin: stackoverflow.com

content.setVisible(!data.exclude);
content.getParent().pack();
origin: eclipse-color-theme/eclipse-color-theme

private void updateDetails(ColorTheme theme) {
  if (theme == null)
    themeDetails.setVisible(false);
  else {
    authorLabel.setText("Created by " + theme.getAuthor());
    String website = theme.getWebsite();
    if (website == null || website.length() == 0)
      websiteLink.setVisible(false);
    else {
      websiteLink.setText("<a>" + website + "</a>");
      for (Listener listener : websiteLink.getListeners(
          SWT.Selection))
        websiteLink.removeListener(SWT.Selection, listener);
      setLinkTarget(websiteLink, website);
      websiteLink.setVisible(true);
    }
    String id = theme.getId();
    Browser browser = getBrowser();
    if (browser != null)
      browser.setUrl(
        "http://www.eclipsecolorthemes.org/static/themes/java/"
        + id + ".html");
    themeDetails.setVisible(true);
    authorLabel.pack();
    websiteLink.pack();
  }
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

  @Override
  public void focusLost(FocusEvent e) {
    fModifyAllPanel.setVisible(false);
  }
});
origin: org.eclipse/org.eclipse.ui.editors

/**
 * Show and enable the widgets in the message region
 */
private void showRegion() {
  messageComposite.setVisible(true);
}
origin: org.eclipse.platform/org.eclipse.jface

/**
 * Enable the title and disable the message text and image.
 */
public void restoreTitle() {
  titleLabel.setVisible(true);
  messageComposite.setVisible(false);
  lastMessageText = null;
  lastMessageType = IMessageProvider.NONE;
}
origin: BiglySoftware/BiglyBT

  @Override
  public void handleEvent(Event arg0) {
    COConfigurationManager.setParameter("subscriptions.view.showhelp", false);
    composite.setVisible(false);
    FormData data = (FormData) view.getComposite().getLayoutData();
    data.bottom = new FormAttachment(100,0);
    viewComposite.layout(true);
  }
});
origin: org.eclipse.jdt/org.eclipse.jdt.ui

  @Override
  public void widgetSelected(SelectionEvent e) {
    fModifyAllPanel.setVisible(!fModifyAllPanel.isVisible());
    if (fModifyAllPanel.isVisible()) {
      excomposite.setFocus(); // force preview update
      prepareControl();
      fControl.requestLayout();
      fControl.setFocus();
    }
  }
});
org.eclipse.swt.widgetsCompositesetVisible

Popular methods of Composite

  • setLayout
    Sets the layout which is associated with the receiver to be the argument which may be null.
  • <init>
    Constructs a new instance of this class given its parent and a style value describing its behavior a
  • setLayoutData
  • layout
    Forces a lay out (that is, sets the size and location) of all widgets that are in the parent hierarc
  • getDisplay
  • getChildren
    Returns a (possibly empty) array containing the receiver's children. Children are returned in the or
  • getShell
  • getFont
  • getLayout
    Returns layout which is associated with the receiver, or null if one has not been set.
  • setFont
  • getParent
  • computeSize
  • getParent,
  • computeSize,
  • dispose,
  • setBackground,
  • getClientArea,
  • isDisposed,
  • getBackground,
  • setSize,
  • setData

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • requestLocationUpdates (LocationManager)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • JTextField (javax.swing)
  • Option (scala)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now