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

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

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

  • 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 e ) {
  offsetx = -sbHorizontal.getSelection();
  widget.redraw();
 }
} );
origin: pentaho/pentaho-kettle

 @Override
 public void widgetSelected( SelectionEvent e ) {
  removeCondition( cond_nr );
  setModified();
  widget.redraw();
 }
} );
origin: pentaho/pentaho-kettle

 @Override
 public void widgetSelected( SelectionEvent e ) {
  // Move a condition down!
  // oper_nr = 1 : means move down
  setModified();
  widget.redraw();
 }
} );
origin: pentaho/pentaho-kettle

 @Override
 public void widgetSelected( SelectionEvent e ) {
  offsety = -sbVertical.getSelection();
  widget.redraw();
 }
} );
origin: pentaho/pentaho-kettle

 @Override
 public void widgetSelected( SelectionEvent e ) {
  editCondition( cond_nr );
  setModified();
  widget.redraw();
 }
} );
origin: pentaho/pentaho-kettle

 @Override
 public void widgetSelected( SelectionEvent e ) {
  active_condition.negate();
  widget.redraw();
  setModified();
 }
} );
origin: pentaho/pentaho-kettle

 @Override
 public void widgetSelected( SelectionEvent e ) {
  Condition down = active_condition.getCondition( cond_nr );
  active_condition.removeCondition( cond_nr );
  active_condition.addCondition( cond_nr + 1, down );
  widget.redraw();
 }
} );
origin: pentaho/pentaho-kettle

 @Override
 public void widgetSelected( SelectionEvent e ) {
  Condition up = active_condition.getCondition( cond_nr );
  active_condition.removeCondition( cond_nr );
  active_condition.addCondition( cond_nr - 1, up );
  widget.redraw();
 }
} );
origin: pentaho/pentaho-kettle

 @Override
 public void widgetSelected( SelectionEvent e ) {
  // Move the condition lower: this means delete the condition from the active_condition.
  // After that, move it to the parent.
  Condition up = active_condition.getCondition( cond_nr );
  active_condition.removeCondition( cond_nr );
  Condition parent = parents.get( getLevel() - 1 );
  parent.addCondition( up );
  // Take a look upward...
  goUp();
  widget.redraw();
 }
} );
origin: pentaho/pentaho-kettle

 @Override
 public void widgetSelected( SelectionEvent e ) {
  Condition c = new Condition();
  c.setOperator( Condition.OPERATOR_AND );
  sub.addCondition( c );
  setModified();
  widget.redraw();
 }
} );
origin: pentaho/pentaho-kettle

private void addCondition() {
 Condition c = new Condition();
 c.setOperator( Condition.OPERATOR_AND );
 addCondition( c );
 setModified();
 widget.redraw();
}
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 widgetSelected( SelectionEvent e ) {
  Condition c = active_condition.getCondition( cond_nr );
  try {
   String xml = c.getXML();
   GUIResource.getInstance().toClipboard( xml );
   widget.redraw();
  } catch ( Exception ex ) {
   new ErrorDialog( shell, "Error", "Error encoding to XML", ex );
  }
 }
} );
origin: pentaho/pentaho-kettle

 @Override
 public void widgetSelected( SelectionEvent e ) {
  // Move the condition lower: this means create a subcondition and put the condition there in the list.
  //
  Condition down = active_condition.getCondition( cond_nr );
  Condition c = new Condition();
  c.setOperator( down.getOperator() );
  down.setOperator( Condition.OPERATOR_NONE );
  active_condition.setCondition( cond_nr, c );
  c.addCondition( down );
  widget.redraw();
 }
} );
origin: pentaho/pentaho-kettle

offsetx = -sbHorizontal.getSelection();
offsety = -sbVertical.getSelection();
widget.redraw();
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

/**
 * 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

 /**
  * maximizeBrowser
  * 
  * @param browser
  *          the browser object to maximize. We try to take up as much of the Spoon window as possible.
  */
 private static void maximizeExpandedContent( Browser browser ) {
  SashForm sash = (SashForm) spoonInstance().getDesignParent();
  int[] weights = sash.getWeights();
  int[] savedSashWeights = new int[weights.length];
  System.arraycopy( weights, 0, savedSashWeights, 0, weights.length );
  spoonInstance().getTabSet().getSelected().setSashWeights( savedSashWeights );
  weights[0] = 0;
  weights[1] = 1000;
  sash.setWeights( weights );
  FormData formData = new FormData();
  formData.top = new FormAttachment( 0, 0 );
  formData.left = new FormAttachment( 0, 0 );
  formData.bottom = new FormAttachment( 100, 0 );
  formData.right = new FormAttachment( 100, 0 );
  browser.setLayoutData( formData );
  browser.getParent().layout( true );
  browser.getParent().redraw();
 }
}
origin: pentaho/pentaho-kettle

 @Override
 public void widgetSelected( SelectionEvent e ) {
  String xml = GUIResource.getInstance().fromClipboard();
  try {
   Document d = XMLHandler.loadXMLString( xml );
   Node condNode = XMLHandler.getSubNode( d, "condition" );
   if ( condNode != null ) {
    Condition c = new Condition( condNode );
    active_condition.addCondition( cond_nr, c );
    widget.redraw();
   } else {
    new ErrorDialog( shell, BaseMessages.getString( PKG, "ConditionEditor.Error" ), BaseMessages
     .getString( PKG, "ConditionEditor.NoConditionFoundXML" ), new KettleXMLException( BaseMessages
     .getString( PKG, "ConditionEditor.NoConditionFoundXML.Exception", Const.CR + Const.CR + xml ) ) );
   }
  } catch ( KettleXMLException ex ) {
   new ErrorDialog( shell, BaseMessages.getString( PKG, "ConditionEditor.Error" ), BaseMessages
    .getString( PKG, "ConditionEditor.ErrorParsingCondition" ), ex );
  }
 }
} );
origin: pentaho/pentaho-kettle

 @Override
 public void widgetSelected( SelectionEvent e ) {
  String xml = GUIResource.getInstance().fromClipboard();
  try {
   Document d = XMLHandler.loadXMLString( xml );
   Node condNode = XMLHandler.getSubNode( d, "condition" );
   if ( condNode != null ) {
    Condition c = new Condition( condNode );
    active_condition.addCondition( cond_nr + 1, c );
    widget.redraw();
   } else {
    new ErrorDialog( shell, BaseMessages.getString( PKG, "ConditionEditor.Error" ), BaseMessages
     .getString( PKG, "ConditionEditor.NoConditionFoundXML" ), new KettleXMLException( BaseMessages
     .getString( PKG, "ConditionEditor.NoConditionFoundXML.Exception", Const.CR + Const.CR + xml ) ) );
   }
  } catch ( KettleXMLException ex ) {
   new ErrorDialog( shell, BaseMessages.getString( PKG, "ConditionEditor.Error" ), BaseMessages
    .getString( PKG, "ConditionEditor.ErrorParsingCondition" ), ex );
  }
 }
} );
org.eclipse.swt.widgetsCompositeredraw

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,
  • setVisible,
  • setSize,
  • setData

Popular in Java

  • Updating database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • getSharedPreferences (Context)
  • getSystemService (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
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