|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.explodingpixels.macwidgets.MacWidgetFactory
public class MacWidgetFactory
A factory for creating various types of Mac style widgets. See each method's javadoc for detailed descriptions of the components, as well as screen shots and links to specific sections in Apples Human Interface Guidelines.
Constructor Summary | |
---|---|
MacWidgetFactory()
|
Method Summary | |
---|---|
static TriAreaComponent |
createBottomBar(BottomBarSize size)
Creates a Mac style Bottom Bar. |
static ComponentBottomBar |
createComponentStatusBar()
|
static javax.swing.JLabel |
createEmphasizedLabel(java.lang.String text)
|
static javax.swing.JTable |
createITunesTable(javax.swing.table.TableModel tableModel)
|
static javax.swing.JTree |
createSourceList(javax.swing.tree.TreeModel model)
|
static javax.swing.JScrollPane |
createSourceListScrollPane(javax.swing.JComponent content)
|
static javax.swing.JComponent |
createSpacer(int width,
int height)
Creates a transparent spacer of the given width and height. |
static javax.swing.JSplitPane |
createSplitPaneForSourceList(SourceList sourceList,
javax.swing.JComponent component)
|
static com.explodingpixels.painter.Painter<java.awt.Component> |
createTexturedWindowWorkaroundPainter()
|
static PreferencesTabBar |
createUnifiedPreferencesTabBar()
|
static TriAreaComponent |
createUnifiedToolBar()
Creates a Mac style Unified Tool Bar. |
static javax.swing.JLabel |
makeEmphasizedLabel(javax.swing.JLabel label)
|
static javax.swing.JLabel |
makeEmphasizedLabel(javax.swing.JLabel label,
java.awt.Color focusedColor,
java.awt.Color unfocusedColor,
java.awt.Color emphasisColor)
|
static javax.swing.JTree |
makeSourceList(javax.swing.JTree tree)
|
static javax.swing.JScrollPane |
makeSourceListScrollPane(javax.swing.JScrollPane scrollPane)
|
static javax.swing.JScrollPane |
wrapITunesTableInJScrollPane(javax.swing.JTable table)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MacWidgetFactory()
Method Detail |
---|
public static javax.swing.JTable createITunesTable(javax.swing.table.TableModel tableModel)
public static javax.swing.JScrollPane wrapITunesTableInJScrollPane(javax.swing.JTable table)
public static TriAreaComponent createUnifiedToolBar()
TriAreaComponent toolBar = MacWidgetFactory.createUnifiedToolBar(); JButton button = new JButton("My Button"); button.putClientProperty("JButton.buttonType", "textured"); toolBar.addComponentToLeft(button);
TriAreaComponent
configured as a Unified Tool Bar.public static PreferencesTabBar createUnifiedPreferencesTabBar()
public static ComponentBottomBar createComponentStatusBar()
public static TriAreaComponent createBottomBar(BottomBarSize size)
TriAreaComponent bottomBar = MacWidgetFactory.createBottomBar(BottomBarSize.LARGE); bottomBar.addComponentToCenter(MacWidgetFactory.createEmphasizedLabel("My Label"));
size
- the size of the Bottom Bar.
TriAreaComponent
configured as a Bottom Bar.public static javax.swing.JComponent createSpacer(int width, int height)
width
- the width of the spacer - zero if the width doesn't matter.height
- the height of the spacer - zero if the height doesn't matter.
public static javax.swing.JLabel createEmphasizedLabel(java.lang.String text)
public static javax.swing.JLabel makeEmphasizedLabel(javax.swing.JLabel label)
public static javax.swing.JLabel makeEmphasizedLabel(javax.swing.JLabel label, java.awt.Color focusedColor, java.awt.Color unfocusedColor, java.awt.Color emphasisColor)
public static javax.swing.JSplitPane createSplitPaneForSourceList(SourceList sourceList, javax.swing.JComponent component)
public static javax.swing.JTree createSourceList(javax.swing.tree.TreeModel model)
public static javax.swing.JTree makeSourceList(javax.swing.JTree tree)
public static javax.swing.JScrollPane createSourceListScrollPane(javax.swing.JComponent content)
public static javax.swing.JScrollPane makeSourceListScrollPane(javax.swing.JScrollPane scrollPane)
public static com.explodingpixels.painter.Painter<java.awt.Component> createTexturedWindowWorkaroundPainter()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |