zinger.bsheet
Class AppearanceEditor

java.lang.Object
  extended by zinger.bsheet.DialogEditor
      extended by zinger.bsheet.AppearanceEditor
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, javax.swing.event.ChangeListener

public class AppearanceEditor
extends DialogEditor
implements javax.swing.event.ChangeListener


Field Summary
protected  javax.swing.JColorChooser bgColorChooser
           
protected  javax.swing.JCheckBox boldCheckBox
           
protected  boolean clearAccepted
           
protected  javax.swing.JButton clearButton
           
protected  javax.swing.JColorChooser fgColorChooser
           
protected  javax.swing.JComboBox fontFamilyPicker
           
protected  javax.swing.JSpinner fontSizeSpinner
           
protected  javax.swing.JComboBox hAlignmentSelection
           
protected  javax.swing.JCheckBox italicCheckBox
           
protected  javax.swing.JComponent sample
           
protected  javax.swing.JComboBox vAlignmentSelection
           
 
Fields inherited from class zinger.bsheet.DialogEditor
acceptButton, acceptCommand, acceptLabel, cancelButton, cancelCommand, cancelLabel, cellEditCommand, changesAccepted, colEditCommand, dialog, dialogTitle, lock, table
 
Constructor Summary
AppearanceEditor(javax.swing.JTable table)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ev)
           
protected  javax.swing.JPanel buildButtonPanel()
           
protected  void createDialog()
           
protected  void editCells()
           
protected  void editColumns()
           
protected  java.awt.Font getCurrentFont()
           
protected  int getHAlignmentFromSelection(int hAlignmentSelection)
           
protected  int getSelectionFromHAlignment(int hAlignment)
           
protected  int getSelectionFromVAlignment(int vAlignment)
           
protected  int getVAlignmentFromSelection(int vAlignmentSelection)
           
protected  void prompt()
           
 void stateChanged(javax.swing.event.ChangeEvent ev)
           
protected  void updateSampleFont()
          Deprecated. Use updateSampleUI().
protected  void updateSampleUI()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fgColorChooser

protected javax.swing.JColorChooser fgColorChooser

bgColorChooser

protected javax.swing.JColorChooser bgColorChooser

fontFamilyPicker

protected javax.swing.JComboBox fontFamilyPicker

fontSizeSpinner

protected javax.swing.JSpinner fontSizeSpinner

boldCheckBox

protected javax.swing.JCheckBox boldCheckBox

italicCheckBox

protected javax.swing.JCheckBox italicCheckBox

hAlignmentSelection

protected javax.swing.JComboBox hAlignmentSelection

vAlignmentSelection

protected javax.swing.JComboBox vAlignmentSelection

sample

protected javax.swing.JComponent sample

clearButton

protected javax.swing.JButton clearButton

clearAccepted

protected boolean clearAccepted
Constructor Detail

AppearanceEditor

public AppearanceEditor(javax.swing.JTable table)
Method Detail

editColumns

protected void editColumns()
Specified by:
editColumns in class DialogEditor

editCells

protected void editCells()
Specified by:
editCells in class DialogEditor

prompt

protected void prompt()

getHAlignmentFromSelection

protected int getHAlignmentFromSelection(int hAlignmentSelection)

getVAlignmentFromSelection

protected int getVAlignmentFromSelection(int vAlignmentSelection)

getSelectionFromHAlignment

protected int getSelectionFromHAlignment(int hAlignment)

getSelectionFromVAlignment

protected int getSelectionFromVAlignment(int vAlignment)

createDialog

protected void createDialog()
Overrides:
createDialog in class DialogEditor

buildButtonPanel

protected javax.swing.JPanel buildButtonPanel()
Overrides:
buildButtonPanel in class DialogEditor

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent ev)
Specified by:
stateChanged in interface javax.swing.event.ChangeListener

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ev)
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class DialogEditor

updateSampleUI

protected void updateSampleUI()
Since:
1.0.5

getCurrentFont

protected java.awt.Font getCurrentFont()

updateSampleFont

protected void updateSampleFont()
Deprecated. Use updateSampleUI().

See Also:
updateSampleUI()