com.explodingpixels.macwidgets
public class MacWidgetFactory extends Object
Constructor and Description |
---|
MacWidgetFactory() |
Modifier and Type | Method and Description |
---|---|
static ComponentBottomBar |
createComponentStatusBar() |
static JLabel |
createEmphasizedLabel(String text) |
static JTable |
createITunesTable(TableModel tableModel)
Creates an iTunes style table like the one listed below:
![]() Sorting indicators will be rendered if a TableUtils.SortDelegate is installed on the associated
JTable via the
TableUtils.makeSortable(javax.swing.JTable, com.explodingpixels.widgets.TableUtils.SortDelegate)
method. |
static JScrollPane |
createSourceListScrollPane(JComponent content) |
static JComponent |
createSpacer(int width,
int height)
Creates a transparent spacer of the given width and height.
|
static JSplitPane |
createSplitPaneForSourceList(SourceList sourceList,
JComponent component) |
static JLabel |
makeEmphasizedLabel(JLabel label) |
static JLabel |
makeEmphasizedLabel(JLabel label,
Color focusedColor,
Color unfocusedColor,
Color emphasisColor) |
static JScrollPane |
makeSourceListScrollPane(JScrollPane scrollPane) |
public static JTable createITunesTable(TableModel tableModel)
TableUtils.SortDelegate
is installed on the associated
JTable
via the
TableUtils.makeSortable(javax.swing.JTable, com.explodingpixels.widgets.TableUtils.SortDelegate)
method.
To wrap this table in an iApp style JScrollPane
, see
IAppWidgetFactory.createScrollPane(java.awt.Component)
;public static ComponentBottomBar createComponentStatusBar()
public static 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 JLabel makeEmphasizedLabel(JLabel label, Color focusedColor, Color unfocusedColor, Color emphasisColor)
public static JSplitPane createSplitPaneForSourceList(SourceList sourceList, JComponent component)
public static JScrollPane createSourceListScrollPane(JComponent content)
public static JScrollPane makeSourceListScrollPane(JScrollPane scrollPane)