org.eclipse.net4j.util.ui.widgets
Class PreferenceButton

java.lang.Object
  extended by org.eclipse.net4j.util.ui.widgets.PreferenceButton

public class PreferenceButton
extends java.lang.Object


Constructor Summary
PreferenceButton(org.eclipse.swt.widgets.Composite parent, int style, java.lang.String text, OMPreference<java.lang.Boolean> preference)
           
 
Method Summary
 int getAlignment()
           
 org.eclipse.swt.widgets.Button getButton()
           
 org.eclipse.swt.graphics.Image getImage()
           
 OMPreference<java.lang.Boolean> getPreference()
           
 boolean getSelection()
           
 boolean getSelection(boolean setPreference)
           
 java.lang.String getText()
           
 void setAlignment(int alignment)
           
 boolean setFocus()
           
 void setImage(org.eclipse.swt.graphics.Image image)
           
 void setSelection(boolean selected)
           
 void setText(java.lang.String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreferenceButton

public PreferenceButton(org.eclipse.swt.widgets.Composite parent,
                        int style,
                        java.lang.String text,
                        OMPreference<java.lang.Boolean> preference)
Method Detail

getPreference

public OMPreference<java.lang.Boolean> getPreference()

getButton

public org.eclipse.swt.widgets.Button getButton()

getAlignment

public int getAlignment()

getImage

public org.eclipse.swt.graphics.Image getImage()

getSelection

public boolean getSelection(boolean setPreference)

getSelection

public boolean getSelection()

getText

public java.lang.String getText()

setAlignment

public void setAlignment(int alignment)

setImage

public void setImage(org.eclipse.swt.graphics.Image image)

setSelection

public void setSelection(boolean selected)

setText

public void setText(java.lang.String string)

setFocus

public boolean setFocus()

Copyright (c) 2004 - 2008 Eike Stepper, Germany.
All Rights Reserved.