|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pietschy.command.configuration.impl.FaceAttributeParser
com.pietschy.command.configuration.impl.FaceTextAttributeParser
public class FaceTextAttributeParser
Parses the text attribute of faces.
| Field Summary | |
|---|---|
(package private) java.util.regex.Pattern |
pattern
|
| Constructor Summary | |
|---|---|
FaceTextAttributeParser()
Creates a new instance. |
|
| Method Summary | |
|---|---|
protected boolean |
endsInEscapeCharacter(java.lang.String s)
Checks if the string ends in an odd number of '\'. |
(package private) static java.lang.String |
getDefaultShortcutString(int shortCutMask)
Gets the string representation of specified shortcut mask. |
static javax.swing.KeyStroke |
parseAccelerator(java.lang.CharSequence accelerator)
Parses accelerator values. |
void |
parseEmptyImpl(java.lang.String property,
Face face,
ExceptionFactory factory)
Updates the face attribute to be null and not inherited. |
protected void |
parseImpl(java.lang.String propertyName,
java.lang.String value,
Face face,
ExceptionFactory factory)
Parses the text value and updates the face appropriately. |
(package private) static java.lang.String |
replaceDefaultAccelerator(java.lang.CharSequence accelerator)
Replaces the string "default" with the current platforms default accelerator. |
| Methods inherited from class com.pietschy.command.configuration.impl.FaceAttributeParser |
|---|
getProperties, parse |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
java.util.regex.Pattern pattern
| Constructor Detail |
|---|
public FaceTextAttributeParser()
| Method Detail |
|---|
protected void parseImpl(java.lang.String propertyName,
java.lang.String value,
Face face,
ExceptionFactory factory)
throws ParseException
parseImpl in class FaceAttributeParserpropertyName - ignored.value - the value of the text property.face - the face to configure.factory - the exception factory.
ParseException - if there was an error parsing the property.
public static javax.swing.KeyStroke parseAccelerator(java.lang.CharSequence accelerator)
throws ParseException
KeyStroke.getKeyStroke(String) after
replacing the string "default" with the currently platforms default accelerator.
accelerator - the accelerator definition
KeyStroke representing the specified accelerator.
ParseException - if there was an error parsing the accelerator.protected boolean endsInEscapeCharacter(java.lang.String s)
s - the string to check.
true if the string ends in '\', false otherwise.
public void parseEmptyImpl(java.lang.String property,
Face face,
ExceptionFactory factory)
parseEmptyImpl in class FaceAttributeParserproperty - the property to configure.face - the face to update.factory - the exception factory.static java.lang.String replaceDefaultAccelerator(java.lang.CharSequence accelerator)
accelerator - the accelerator string.
static java.lang.String getDefaultShortcutString(int shortCutMask)
shortCutMask - the short cut mask.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||