Package com.explodingpixels.macwidgets
Class IAppWidgetFactory
- java.lang.Object
-
- com.explodingpixels.macwidgets.IAppWidgetFactory
-
public class IAppWidgetFactory extends java.lang.ObjectA factory for iApp style widgets.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.swing.JScrollPanecreateScrollPane(java.awt.Component view)Creates an iApp styleJScrollPane, with vertical and horizontal scrollbars shown as needed.static javax.swing.JScrollPanecreateScrollPane(java.awt.Component view, int verticalScrollBarPolicy, int horizontalScrollBarPolicy)Creates an iApp styleJScrollPaneusing the given scroll bar policies.static javax.swing.JComponentcreateScrollPaneCorner()Creates an iApp style scrollpane corner.static javax.swing.JComponentcreateScrollPaneCornerLowerLeft()Creates an iApp style scrollpane corner.static javax.swing.JScrollPanemakeIAppScrollPane(javax.swing.JScrollPane scrollPane)Makes the givenJScrollPanean iApp style scroll pane that looks like this:

static voidsetIAppScrollBarButtonsSeparate(boolean buttonsApart)Sets the default "buttons separate" status for scroll bars.
-
-
-
Method Detail
-
createScrollPane
public static javax.swing.JScrollPane createScrollPane(java.awt.Component view)
Creates an iApp styleJScrollPane, with vertical and horizontal scrollbars shown as needed. The increment/decrement buttons will be placed together or separatebased on the value ofIAppScrollBarUI.areButtonsSeparate().- Parameters:
view- the view to wrap inside theJScrollPane.- Returns:
- an iApp style
JScrollPane. - See Also:
makeIAppScrollPane(javax.swing.JScrollPane)
-
createScrollPane
public static javax.swing.JScrollPane createScrollPane(java.awt.Component view, int verticalScrollBarPolicy, int horizontalScrollBarPolicy)Creates an iApp styleJScrollPaneusing the given scroll bar policies. The increment/decrement buttons will be placed together or separatebased on the value ofIAppScrollBarUI.areButtonsSeparate().- Parameters:
view- the view to wrap inside theJScrollPane.verticalScrollBarPolicy- the vertical scroll bar policy.horizontalScrollBarPolicy- the horizontal scroll bar policy.- Returns:
- an iApp style
JScrollPaneusing the given scroll bar policies. - See Also:
makeIAppScrollPane(javax.swing.JScrollPane)
-
makeIAppScrollPane
public static javax.swing.JScrollPane makeIAppScrollPane(javax.swing.JScrollPane scrollPane)
Makes the givenJScrollPanean iApp style scroll pane that looks like this:

- Parameters:
scrollPane- theJScrollPaneto make an iApp style scroll pane.- Returns:
- an iApp style scroll pane.
-
setIAppScrollBarButtonsSeparate
public static void setIAppScrollBarButtonsSeparate(boolean buttonsApart)
Sets the default "buttons separate" status for scroll bars. The default value isfalse, meaning that the buttons will be placed together at the right or bottom of the scroll bar. A value oftruemeans that the buttons will be placed at opposite ends of the scroll bar.- Parameters:
buttonsApart- the "buttons apart" status.
-
createScrollPaneCorner
public static javax.swing.JComponent createScrollPaneCorner()
Creates an iApp style scrollpane corner.- Returns:
- returns a
JComponentthat represents the scroll pane corner.
-
createScrollPaneCornerLowerLeft
public static javax.swing.JComponent createScrollPaneCornerLowerLeft()
Creates an iApp style scrollpane corner.- Returns:
- returns a
JComponentthat represents the scroll pane corner.
-
-