|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.text.AbstractDocument
javax.swing.text.PlainDocument
tecgraf.javautils.gui.field.RegexDocument
tecgraf.javautils.gui.field.LatLongDocument
public class LatLongDocument
Campo para Latitude ou Longitude. Escolhe Latitude ou Longitude, exibir efeito visual em caso de valor errado, representar hemisfério via sinal de negativo e casas decimais para os segundos
| Nested Class Summary | |
|---|---|
static class |
LatLongDocument.Orientation
|
| Nested classes/interfaces inherited from class javax.swing.text.AbstractDocument |
|---|
AbstractDocument.AbstractElement, AbstractDocument.AttributeContext, AbstractDocument.BranchElement, AbstractDocument.Content, AbstractDocument.DefaultDocumentEvent, AbstractDocument.ElementEdit, AbstractDocument.LeafElement |
| Field Summary |
|---|
| Fields inherited from class javax.swing.text.PlainDocument |
|---|
lineLimitAttribute, tabSizeAttribute |
| Fields inherited from class javax.swing.text.AbstractDocument |
|---|
BAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementName |
| Fields inherited from interface javax.swing.text.Document |
|---|
StreamDescriptionProperty, TitleProperty |
| Constructor Summary | |
|---|---|
LatLongDocument(LatLongDocument.Orientation orientation)
Default: exibir erro em validação desligado ; quantidade de casas decimais para segundos é 2 ; representando hemisfério via sinal de negativo |
|
LatLongDocument(LatLongDocument.Orientation orientation,
boolean hemisphereEnabled)
Default: quantidade de casas decimais para segundos é 2 |
|
LatLongDocument(LatLongDocument.Orientation orientation,
int decimal)
Default: exibir erro em validação é false ; representando hemisfério via sinal de negativo |
|
LatLongDocument(LatLongDocument.Orientation orientation,
int decimal,
boolean hemisphereEnabled)
Construtor |
|
| Method Summary | |
|---|---|
Integer |
getDegree()
Retorna o grau |
Integer |
getMinute()
Retorna os minutos |
Float |
getSecond()
Retorna os segundos. |
protected Object |
getValue()
Obtém o valor atual |
boolean |
isHemisphereEnabled()
|
boolean |
isValid()
|
protected void |
rebuildCompleText()
|
void |
setAutoComplete(boolean complete)
Ativa o auto complemento de texto. |
void |
setDecimal(int decimal)
Seta a quantidade de casas decimais para os segundos, o mínimo é 1 casa decimal |
| Methods inherited from class tecgraf.javautils.gui.field.RegexDocument |
|---|
fireAllListeners, getCompleteText, insertString, remove, setCompleteText |
| Methods inherited from class javax.swing.text.PlainDocument |
|---|
createDefaultRoot, getDefaultRootElement, getParagraphElement, insertUpdate, removeUpdate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LatLongDocument(LatLongDocument.Orientation orientation)
orientation -
public LatLongDocument(LatLongDocument.Orientation orientation,
int decimal)
orientation - decimal - quantidade de casas decimais para segundos
public LatLongDocument(LatLongDocument.Orientation orientation,
boolean hemisphereEnabled)
orientation - showValidation - exibir erro em validaçãohemisphereEnabled - representar hemisfério via sinal de negativo
public LatLongDocument(LatLongDocument.Orientation orientation,
int decimal,
boolean hemisphereEnabled)
orientation - LatLongDocument.Orientationdecimal - quantidade de casas decimais para segundoshemisphereEnabled - representar hemisfério via sinal de negativo| Method Detail |
|---|
protected void rebuildCompleText()
public void setAutoComplete(boolean complete)
complete - public boolean isValid()
public void setDecimal(int decimal)
decimal - public Integer getDegree()
public Integer getMinute()
public Float getSecond()
public boolean isHemisphereEnabled()
protected Object getValue()
RegexDocument
getValue in class RegexDocument
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||