org.homeunix.thecave.buddi.util
Class InternalFormatter

java.lang.Object
  extended by org.homeunix.thecave.buddi.util.InternalFormatter

public class InternalFormatter
extends java.lang.Object


Constructor Summary
InternalFormatter()
           
 
Method Summary
static java.awt.Dimension getButtonSize(javax.swing.JButton button)
           
static java.awt.Dimension getComboBoxSize(javax.swing.JComboBox comboBox)
           
static java.awt.Dimension getComponentSize(javax.swing.JComponent component, int minWidth)
           
static boolean isRed(Account a, long value)
           
static boolean isRed(AccountType t)
           
static boolean isRed(AccountType t, long value)
           
static boolean isRed(BudgetCategory c, long value)
           
static boolean isRed(long value)
           
static boolean isRed(Source s)
           
static boolean isRed(Transaction t)
           
static boolean isRed(Transaction t, boolean toSelectedAccount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalFormatter

public InternalFormatter()
Method Detail

getComponentSize

public static java.awt.Dimension getComponentSize(javax.swing.JComponent component,
                                                  int minWidth)

getComboBoxSize

public static java.awt.Dimension getComboBoxSize(javax.swing.JComboBox comboBox)

getButtonSize

public static java.awt.Dimension getButtonSize(javax.swing.JButton button)

isRed

public static boolean isRed(Source s)

isRed

public static boolean isRed(Account a,
                            long value)

isRed

public static boolean isRed(BudgetCategory c,
                            long value)

isRed

public static boolean isRed(AccountType t)

isRed

public static boolean isRed(AccountType t,
                            long value)

isRed

public static boolean isRed(Transaction t)

isRed

public static boolean isRed(Transaction t,
                            boolean toSelectedAccount)

isRed

public static boolean isRed(long value)