|
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.preferences.PrefPanel
net.sourceforge.mp3dings.preferences.FilenamePatternPanel
public class FilenamePatternPanel
This Preference Field configures a regular expression with which meta information is extracted from filenames.
| 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 |
|---|
| Fields inherited from class net.sourceforge.mp3dings.preferences.PrefPanel |
|---|
prefs |
| 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 | |
|---|---|
FilenamePatternPanel(FilenamePatternModule parent,
Field field)
Creates a new FilenamePatternPanel with the given title. |
|
FilenamePatternPanel(FilenamePatternModule parent,
Field field,
String p,
String cgs)
Constructs a new instance of this class. |
|
| Method Summary | |
|---|---|
String |
getCgString()
Returns the current capturing group string in the GUI. |
Field |
getField()
Returns the id of the currently selected field. |
String |
getPattern()
Returns the current Regular Expression from the pattern field. |
boolean |
isSavable()
|
void |
save()
Does nothing. |
void |
setCgString(String cgs)
Sets the capturing group string in the GUI. |
void |
setField(Field field)
Sets the current field in the GUI. |
void |
setPattern(String p)
Sets the current regular expression in the GUI. |
String |
toString()
Returns a String representation of the current state of a FilenamePatternPanel. |
| Methods inherited from class net.sourceforge.mp3dings.preferences.PrefPanel |
|---|
getName, getNum, getParentModule, getPrefs, getTabModel, getTabNames, isRemoveAllowed, mainFrame, selfDestruct, setName, setParentModule, setPrefs, setRemoveAllowed |
| 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 |
| Constructor Detail |
|---|
public FilenamePatternPanel(FilenamePatternModule parent,
Field field,
String p,
String cgs)
parent - the FilenamePatternModule the manages this panelfield - the field that is initially associated with this PrefPanelp - the initial regular expression for this PrefPanelcgs - the initial capturing group string
IllegalArgumentException - if field is not in availableFields.
PatternSyntaxException - if p cannot be compiled as a
regular expression
public FilenamePatternPanel(FilenamePatternModule parent,
Field field)
| Method Detail |
|---|
public Field getField()
public void setField(Field field)
public void setPattern(String p)
public String getPattern()
PatternSyntaxException - if the String in the pattern field
cannot be compiled as a regular expressionpublic boolean isSavable()
public String toString()
toString in class Componentpublic void setCgString(String cgs)
public String getCgString()
public void save()
save in class PrefPanel
|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||