Remote Systems
v6.4.1

com.ibm.etools.systems.files.importexport.jar
Class RemoteJarSWTUtil

java.lang.Object
  extended bycom.ibm.etools.systems.files.importexport.jar.RemoteJarSWTUtil

public class RemoteJarSWTUtil
extends Object


Constructor Summary
RemoteJarSWTUtil()
           
 
Method Summary
static Button createPushButton(Composite parent, String label, Image image)
          Creates and returns a new push button with the given label and/or image.
static Button createRadioButton(Composite parent, String label)
          Creates and returns a new radio button with the given label.
static int getButtonWidthHint(Button button)
          Returns a width hint for a button control.
static Shell getShell(Widget widget)
          Returns the shell for the given widget.
static Display getStandardDisplay()
          Returns the standard display to be used.
static void setButtonDimensionHint(Button button)
          Sets width and height hint for the button control.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteJarSWTUtil

public RemoteJarSWTUtil()
Method Detail

getStandardDisplay

public static Display getStandardDisplay()
Returns the standard display to be used. The method first checks, if the thread calling this method has an associated disaply. If so, this display is returned. Otherwise the method returns the default display.


getShell

public static Shell getShell(Widget widget)
Returns the shell for the given widget. If the widget doesn't represent a SWT object that manage a shell, null is returned.

Returns:
the shell for the given widget

getButtonWidthHint

public static int getButtonWidthHint(Button button)
Returns a width hint for a button control.


setButtonDimensionHint

public static void setButtonDimensionHint(Button button)
Sets width and height hint for the button control. Note: This is a NOP if the button's layout data is not an instance of GridData.


createPushButton

public static Button createPushButton(Composite parent,
                                      String label,
                                      Image image)
Creates and returns a new push button with the given label and/or image.

Parameters:
parent - parent control
label - button label or null
image - image of null
Returns:
a new push button

createRadioButton

public static Button createRadioButton(Composite parent,
                                       String label)
Creates and returns a new radio button with the given label.

Parameters:
parent - parent control
label - button label or null
Returns:
a new radio button

Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.