public class SBOptionCardFactory extends java.lang.Object
Factory class for creating SBOptionCard instances.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static SBOptionCard |
createOptionCard(javax.swing.Icon icon, java.lang.String title, java.lang.String subtitle)Creates an SBOptionCard with the given icon, title, and subtitle. |
|
public static SBOptionCard |
createOptionCard(javax.swing.Icon icon, java.lang.String title, java.lang.String subtitle, java.lang.Runnable onClickAction)Creates an SBOptionCard with the given icon, title, subtitle, and click action. |
|
public static SBRadioOptionCard |
createRadioCard(javax.swing.Icon icon, java.lang.String title, java.lang.String subtitle)Creates an SBRadioOptionCard with the given icon, title, and subtitle. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Creates an SBOptionCard with the given icon, title, and subtitle.
icon - the icon to display on the cardtitle - the title text for the cardsubtitle - the subtitle text for the cardCreates an SBOptionCard with the given icon, title, subtitle, and click action.
icon - the icon to display on the cardtitle - the title text for the cardsubtitle - the subtitle text for the cardonClickAction - the action to execute when the card is clickedCreates an SBRadioOptionCard with the given icon, title, and subtitle. Radio cards display the icon on the left with title and subtitle stacked vertically.
icon - the icon to display on the cardtitle - the title text for the cardsubtitle - the subtitle text for the card