org.eclipse.nebula.widgets.nattable.style.editor
Class FontPicker

java.lang.Object
  extended by org.eclipse.nebula.widgets.nattable.style.editor.FontPicker

public class FontPicker
extends Object

A button that displays a font name and allows the user to pick another font.


Constructor Summary
FontPicker(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.graphics.Font originalFont)
           
 
Method Summary
 org.eclipse.swt.widgets.Button getButton()
           
 org.eclipse.swt.graphics.Font getOriginalFont()
           
 org.eclipse.swt.graphics.Font getSelectedFont()
           
 void setLayoutData(org.eclipse.swt.layout.GridData gridData)
           
 void setOriginalFont(org.eclipse.swt.graphics.Font font)
          Set the selected font.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontPicker

public FontPicker(org.eclipse.swt.widgets.Composite parent,
                  org.eclipse.swt.graphics.Font originalFont)
Method Detail

getSelectedFont

public org.eclipse.swt.graphics.Font getSelectedFont()
Returns:
Font selected by the user. Note that it is the responsibility of the client to dispose of this resource.

getOriginalFont

public org.eclipse.swt.graphics.Font getOriginalFont()

setOriginalFont

public void setOriginalFont(org.eclipse.swt.graphics.Font font)
Set the selected font. Note that this class will not take ownership of the passed resource. Instead it will create and manage its own internal copy.


getButton

public org.eclipse.swt.widgets.Button getButton()
Returns:
the button

setLayoutData

public void setLayoutData(org.eclipse.swt.layout.GridData gridData)


Copyright © 2015. All rights reserved.