|
JAPI 0.9.0 Yet another Java API API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel net.sf.japi.swing.prefs.AbstractPrefs
public abstract class AbstractPrefs
Abstract preferences implementation.
Subclass this.
Build the panel in your constructor.
The default layout of an AbstractPrefs is BoxLayout
with BoxLayout.Y_AXIS
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
protected |
AbstractPrefs()
Constructor. |
protected |
AbstractPrefs(LayoutManager layout)
Constructor that allows setting the initial layout. |
Method Summary | |
---|---|
JComponent |
getEditComponent()
Provide a component for editing the prefs. |
String |
getHelpText()
Provide help (HTML). |
URL |
getHelpURL()
Provide help. |
String |
getLabelText()
Provide text to be displayed as title for this prefs module. |
Icon |
getListLabelIcon()
Provide an icon to be displayed in the list where the user can choose amongst preferences. |
String |
getListLabelText()
Provide a label to be displayed in the list where the user can choose amongst preferences. |
protected void |
setHelpText(String helpText)
Set the help text. |
protected void |
setHelpURL(URL helpURL)
Set the help URL. |
protected void |
setLabelText(String labelText)
Set the title text that is to be displayed as title for this prefs module. |
protected void |
setListLabelIcon(Icon listLabelIcon)
Set the icon that is to be displayed in the list where the user can choose amongst preferences. |
protected void |
setListLabelText(String listLabelText)
Set the label text that is to be displayed in the list where the user can choose amongst preferences. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sf.japi.swing.prefs.Prefs |
---|
apply, defaults, isChanged, revert |
Constructor Detail |
---|
protected AbstractPrefs()
protected AbstractPrefs(LayoutManager layout)
layout
- LayoutMethod Detail |
---|
public final JComponent getEditComponent()
Prefs.apply()
is invoked.
getEditComponent
in interface Prefs
public final Icon getListLabelIcon()
getListLabelIcon
in interface Prefs
null
if no icon is availableprotected final void setListLabelIcon(Icon listLabelIcon)
listLabelIcon
- iconpublic final String getListLabelText()
getListLabelText
in interface Prefs
protected final void setListLabelText(String listLabelText)
listLabelText
- textpublic final String getLabelText()
getLabelText
in interface Prefs
protected final void setLabelText(String labelText)
labelText
- textpublic final URL getHelpURL()
null
in which case the method Prefs.getHelpText()
will be queried instead.
getHelpURL
in interface Prefs
null
protected final void setHelpURL(URL helpURL)
helpURL
- Help URLpublic final String getHelpText()
Prefs.getHelpURL()
returns null
.
This method may return null
as well, which means that this prefs does not provide any help.
getHelpText
in interface Prefs
null
protected final void setHelpText(String helpText)
helpText
- Help text
|
JAPI Yet another Java API API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |