Package com.explodingpixels.macwidgets
Class IAppWidgetFactory
java.lang.Object
com.explodingpixels.macwidgets.IAppWidgetFactory
A factory for iApp style widgets.
-
Method Summary
Modifier and TypeMethodDescriptionstatic JScrollPane
createScrollPane
(Component view) Creates an iApp styleJScrollPane
, with vertical and horizontal scrollbars shown as needed.static JScrollPane
createScrollPane
(Component view, int verticalScrollBarPolicy, int horizontalScrollBarPolicy) Creates an iApp styleJScrollPane
using the given scroll bar policies.static JComponent
Creates an iApp style scrollpane corner.static JComponent
Creates an iApp style scrollpane corner.static JScrollPane
makeIAppScrollPane
(JScrollPane scrollPane) static void
setIAppScrollBarButtonsSeparate
(boolean buttonsApart) Sets the default "buttons separate" status for scroll bars.
-
Method Details
-
createScrollPane
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:
-
createScrollPane
public static JScrollPane createScrollPane(Component view, int verticalScrollBarPolicy, int horizontalScrollBarPolicy) Creates an iApp styleJScrollPane
using 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
JScrollPane
using the given scroll bar policies. - See Also:
-
makeIAppScrollPane
- Parameters:
scrollPane
- theJScrollPane
to 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 oftrue
means that the buttons will be placed at opposite ends of the scroll bar.- Parameters:
buttonsApart
- the "buttons apart" status.
-
createScrollPaneCorner
Creates an iApp style scrollpane corner.- Returns:
- returns a
JComponent
that represents the scroll pane corner.
-
createScrollPaneCornerLowerLeft
Creates an iApp style scrollpane corner.- Returns:
- returns a
JComponent
that represents the scroll pane corner.
-