|
||||||||
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
kernel.Plugin
kernel.PluginFilenames
public abstract class PluginFilenames
All filenames plugins have to extend this abstract class and to redefine the
execute
method from Plugin
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Field Summary | |
---|---|
static int |
FILTER_DIR
Only the directories in the current directory. |
static int |
FILTER_DIR_REC
Only the directories in the current directory and sub-directories. |
static int |
FILTER_FILE
Only the files in the current directory. |
static int |
FILTER_FILE_AND_DIR
Only the files and directories in the current directory. |
static int |
FILTER_FILE_REC
Only the files in the current directory and sub-directories. |
static int |
FILTER_NO
No filter. |
Fields inherited from class javax.swing.JComponent |
---|
TOOL_TIP_TEXT_KEY, 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 |
Method Summary | |
---|---|
File |
getDir()
Returns the current directory or null if there is no. |
int |
getFlags()
Returns an integer in which each bit codes a flag. |
String |
getFlagsAsLiteral()
Returns the literal form of the flags like (? |
String |
getFlagsAsString()
Returns a String containing the names of all the ticked flags. |
String[] |
getNewFiles()
Returns the list of the new files in the same order than printed on the screen, or null if empty. |
String[] |
getOldFiles(int filter)
Returns the list of the old files in the same order than printed on the screen, or null if empty. |
String |
getReplace()
Returns the content of the Replace by field. |
String |
getSearch()
Returns the content of the Search field. |
String |
getSelectedText()
Returns the selected text. |
String |
getText()
Returns the current text to process. |
boolean |
isCANON_EQ()
Indicates whether the CANON_EQ flag is ticked off. |
boolean |
isCASE_INSENSITIVE()
Indicates whether the CASE_INSENSITIVE flag is ticked off. |
boolean |
isCOMMENTS()
Indicates whether the COMMENTS flag is ticked off. |
boolean |
isUNICODE_CASE()
Indicates whether the UNICODE_CASE flag is ticked off. |
void |
setCANON_EQ(boolean b)
Ticks or unticks the CANON_EQ flag. |
void |
setCASE_INSENSITIVE(boolean b)
Ticks or unticks the CASE_INSENSITIVE flag. |
void |
setCOMMENTS(boolean b)
Ticks or unticks the COMMENTS flag. |
void |
setReplace(String text)
Sets the content of the Replace by field. |
void |
setSearch(String text)
Sets the content of the Search field. |
void |
setUNICODE_CASE(boolean b)
Ticks or unticks the UNICODE_CASE flag. |
Methods inherited from class kernel.Plugin |
---|
compareTo, execute, getAppLanguage, getDescription, getOwner, getPluginsDir, getSummary, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, readFile, setDescription, setSummary |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int FILTER_NO
public static final int FILTER_FILE
public static final int FILTER_FILE_REC
public static final int FILTER_DIR
public static final int FILTER_DIR_REC
public static final int FILTER_FILE_AND_DIR
Method Detail |
---|
public String getSearch()
Search
field.
Search
fieldpublic String getReplace()
Replace by
field.
Replace by
fieldpublic String getText()
public String getSelectedText()
public File getDir()
null
if there is no.
null
if there is nopublic String[] getOldFiles(int filter)
null
if empty. The filter can be
FILTER_NO
, FILTER_FILE
,
FILTER_FILE_REC
, FILTER_DIR
,
FILTER_DIR_REC
or FILTER_FILE_AND_DIR
.
null
if emptypublic String[] getNewFiles()
null
if empty.
null
if emptypublic int getFlags()
((getFlags() & Pattern.CANON_EQ) > 0)
returns
true
if the CANON_EQ
flag is ticked off.
public String getFlagsAsLiteral()
(?ixu)
, or "" if
no flags is ticked off. Note that there is not literal form for the
CANON_EQ
flag.
public String getFlagsAsString()
(getFlagsAsString().indexOf("CANON_EQ") > -1)
returns
true
if the CANON_EQ
flag is ticked off.
public boolean isCANON_EQ()
CANON_EQ
flag is ticked off.
true
if CANON_EQ
is ticked off;
false
otherwisepublic boolean isCASE_INSENSITIVE()
CASE_INSENSITIVE
flag is ticked off.
true
if CASE_INSENSITIVE
is ticked off;
false
otherwisepublic boolean isCOMMENTS()
COMMENTS
flag is ticked off.
true
if COMMENTS
is ticked off;
false
otherwisepublic boolean isUNICODE_CASE()
UNICODE_CASE
flag is ticked off.
true
if UNICODE_CASE
is ticked off;
false
otherwisepublic void setSearch(String text)
Search
field.
text
- the content of the Search
fieldpublic void setReplace(String text)
Replace by
field.
text
- the content of the Replace by
fieldpublic void setCANON_EQ(boolean b)
CANON_EQ
flag.
b
- true
to tick the flag; false
to untick
the flagpublic void setCASE_INSENSITIVE(boolean b)
CASE_INSENSITIVE
flag.
b
- true
to tick the flag; false
to untick
the flagpublic void setCOMMENTS(boolean b)
COMMENTS
flag.
b
- true
to tick the flag; false
to untick
the flagpublic void setUNICODE_CASE(boolean b)
UNICODE_CASE
flag.
b
- true
to tick the flag; false
to untick
the flag
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |