|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.jemmy.util.AbstractTextStyleChooser
org.netbeans.jemmy.util.TextStyleChooser
public class TextStyleChooser
Defines searching criteria for javax.swing.text.StyledDocument
JTextComponentOperator.getPositionByText(String, JTextComponentOperator.TextChooser, int).
Constructor Summary | |
---|---|
TextStyleChooser()
Constructor. |
Method Summary | |
---|---|
boolean |
checkElement(javax.swing.text.StyledDocument doc,
javax.swing.text.Element element,
int offset)
Should return true if position fulfils criteria. |
java.lang.String |
getDescription()
Returns a printable description of the criteria. |
void |
setAlignment(int alignment)
Adds alignment checking to the criteria. |
void |
setBackground(java.awt.Color background)
Adds backgroung color checking to the criteria. |
void |
setBold(boolean bold)
Adds boldness checking to the criteria. |
void |
setFontFamily(java.lang.String fontFamily)
Adds font family checking to the criteria. |
void |
setFontSize(int fontSize)
Adds font size checking to the criteria. |
void |
setForeground(java.awt.Color foreground)
Adds foregroung color checking to the criteria. |
void |
setItalic(boolean italic)
Adds italic style checking to the criteria. |
void |
setStrike(boolean strike)
Adds strikeness checking to the criteria. |
void |
setUnderstrike(boolean understrike)
Adds understrikeness checking to the criteria. |
void |
unsetAlignment()
Removes alignment checking from the criteria. |
void |
unsetBackground()
Removes backgroung color checking from the criteria. |
void |
unsetBold()
Removes boldness checking from the criteria. |
void |
unsetFontFamily()
Removes font family checking from the criteria. |
void |
unsetFontSize()
Removes font size checking from the criteria. |
void |
unsetForeground()
Removes foregroung color checking from the criteria. |
void |
unsetItalic()
Removes italic style checking from the criteria. |
void |
unsetStrike()
Removes strikeness checking from the criteria. |
void |
unsetUnderstrike()
Removes understrikeness checking from the criteria. |
Methods inherited from class org.netbeans.jemmy.util.AbstractTextStyleChooser |
---|
checkPosition |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextStyleChooser()
Method Detail |
---|
public void setBold(boolean bold)
bold
- Specifies if font needs to be bold.public void unsetBold()
public void setItalic(boolean italic)
italic
- Specifies if font needs to be italic.public void unsetItalic()
public void setStrike(boolean strike)
strike
- Specifies if font needs to be striked.public void unsetStrike()
public void setUnderstrike(boolean understrike)
understrike
- Specifies if font needs to be understriked.public void unsetUnderstrike()
public void setFontSize(int fontSize)
fontSize
- Specifies a font size.public void unsetFontSize()
public void setAlignment(int alignment)
alignment
- Specifies a text alignment.public void unsetAlignment()
public void setFontFamily(java.lang.String fontFamily)
fontFamily
- Specifies a font family.public void unsetFontFamily()
public void setBackground(java.awt.Color background)
background
- Specifies a background color.public void unsetBackground()
public void setForeground(java.awt.Color foreground)
foreground
- Specifies a foreground color.public void unsetForeground()
public boolean checkElement(javax.swing.text.StyledDocument doc, javax.swing.text.Element element, int offset)
AbstractTextStyleChooser
checkElement
in class AbstractTextStyleChooser
doc
- a styled document to be searched.element
- an element to be checked.offset
- checked position.
public java.lang.String getDescription()
JTextComponentOperator.TextChooser
getDescription
in interface JTextComponentOperator.TextChooser
getDescription
in class AbstractTextStyleChooser
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |