|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
net.sourceforge.mp3dings.utils.BeanSetCustomizer
public class BeanSetCustomizer
A Preference Module, a container for similar PrefPanels.
| 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.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected BeanSet |
beans
Description of the Field |
protected String |
name
Description of the Field |
protected String |
prefnode
|
| 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 | |
|---|---|
BeanSetCustomizer(String name)
Constructs a new BeanSetCustomizer. |
|
BeanSetCustomizer(String name,
BeanSet beans)
Constructs a new BeanSetCustomizer. |
|
| Method Summary | |
|---|---|
boolean |
addAllBeans(Collection c)
Adds those beans to this Customizer's BeanSet whose names are not represented in this BeanSet yet. |
boolean |
addBean(Bean bean)
Adds a bean to this Customizer's BeanSet if it does not contain a bean with the same name yet. |
protected boolean |
currentBeanIsValid()
|
Bean |
getBeanForName(String name)
Gets the beanForName attribute of the BeanSetCustomizer object |
BeanSet |
getBeans()
Gets the beans attribute of the BeanSetCustomizer object |
Component |
getControls()
This method must return a Container to which other Components can be added. |
String |
getName()
Gets the name attribute of the BeanSetCustomizer object |
static long |
getNewID(Preferences pref)
Gets the newID attribute of the BeanSetCustomizer class |
String |
getSavePath()
|
boolean |
isSavable()
|
void |
load(Class beanClass)
Description of the Method |
static void |
main(String[] argv)
The main program for the BeanSetCustomizer class |
protected MainFrame |
mainFrame()
Description of the Method |
void |
registerType(Class beanClass)
Description of the Method |
boolean |
renameBean(Bean bean,
String newName)
Description of the Method |
void |
save()
Description of the Method |
void |
setSavePath(String s)
|
protected void |
showFirstInvalidBean()
|
| 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 |
| Field Detail |
|---|
protected BeanSet beans
protected String name
protected String prefnode
| Constructor Detail |
|---|
public BeanSetCustomizer(String name)
name - Description of the Parameter
public BeanSetCustomizer(String name,
BeanSet beans)
name - Description of the Parameterbeans - Description of the Parameter| Method Detail |
|---|
public static void main(String[] argv)
throws Exception
argv - The command line arguments
Exception - Description of the Exceptionprotected void showFirstInvalidBean()
public boolean isSavable()
protected boolean currentBeanIsValid()
public boolean renameBean(Bean bean,
String newName)
bean - Description of the ParameternewName - Description of the Parameter
public void registerType(Class beanClass)
beanClass - Description of the Parameterpublic String getName()
getName in class Componentpublic boolean addBean(Bean bean)
bean - The bean to add to the BeanSet
true if the bean has indeed been added to the BeanSetBean.setId(long),
getNewID(java.util.prefs.Preferences)public Bean getBeanForName(String name)
name - Description of the Parameter
public boolean addAllBeans(Collection c)
c - The beans to add to the BeanSet
true if the BeanSet has changed as a
result of this operationBeanSet.addAll(java.util.Collection),
Bean.setId(long),
getNewID(java.util.prefs.Preferences)public void setSavePath(String s)
public String getSavePath()
public void save()
throws BackingStoreException
BackingStoreException - Description of the Exception
public void load(Class beanClass)
throws BackingStoreException
beanClass - Description of the Parameter
BackingStoreException - Description of the Exceptionpublic static long getNewID(Preferences pref)
pref - Description of the Parameter
public BeanSet getBeans()
public Component getControls()
protected MainFrame mainFrame()
|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||