public class LatLongDocument extends RegexDocument
| Modifier and Type | Class and Description |
|---|---|
static class |
LatLongDocument.Orientation |
AbstractDocument.AbstractElement, AbstractDocument.AttributeContext, AbstractDocument.BranchElement, AbstractDocument.Content, AbstractDocument.DefaultDocumentEvent, AbstractDocument.ElementEdit, AbstractDocument.LeafElementlineLimitAttribute, tabSizeAttributeBAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementNameStreamDescriptionProperty, TitleProperty| Constructor and Description |
|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
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
|
fireAllListeners, getCompleteText, insertString, remove, setCompleteTextcreateDefaultRoot, getDefaultRootElement, getParagraphElement, insertUpdate, removeUpdateaddDocumentListener, addUndoableEditListener, createBranchElement, createLeafElement, createPosition, dump, fireChangedUpdate, fireInsertUpdate, fireRemoveUpdate, fireUndoableEditUpdate, getAsynchronousLoadPriority, getAttributeContext, getBidiRootElement, getContent, getCurrentWriter, getDocumentFilter, getDocumentListeners, getDocumentProperties, getEndPosition, getLength, getListeners, getProperty, getRootElements, getStartPosition, getText, getText, getUndoableEditListeners, postRemoveUpdate, putProperty, readLock, readUnlock, removeDocumentListener, removeUndoableEditListener, render, replace, setAsynchronousLoadPriority, setDocumentFilter, setDocumentProperties, writeLock, writeUnlockpublic LatLongDocument(LatLongDocument.Orientation orientation)
orientation - public LatLongDocument(LatLongDocument.Orientation orientation, int decimal)
orientation - decimal - quantidade de casas decimais para segundospublic LatLongDocument(LatLongDocument.Orientation orientation, boolean hemisphereEnabled)
orientation - hemisphereEnabled - representar hemisfério via sinal de negativopublic LatLongDocument(LatLongDocument.Orientation orientation, int decimal, boolean hemisphereEnabled)
orientation - LatLongDocument.Orientationdecimal - quantidade de casas decimais para segundoshemisphereEnabled - representar hemisfério via sinal de negativoprotected 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()
RegexDocumentgetValue in class RegexDocumentCopyright © 2017 Tecgraf/PUC-Rio. All rights reserved.