|
||||||||||
| 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.text.JTextComponent
javax.swing.JTextField
tecgraf.javautils.gui.field.AbstractRegexField
tecgraf.javautils.gui.field.LatLongField
public class LatLongField
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 |
|---|
| Nested classes/interfaces inherited from class javax.swing.JTextField |
|---|
JTextField.AccessibleJTextField |
| Nested classes/interfaces inherited from class javax.swing.text.JTextComponent |
|---|
JTextComponent.AccessibleJTextComponent, JTextComponent.DropLocation, JTextComponent.KeyBinding |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static LatLongDocument.Orientation |
LATITUDE
|
static LatLongDocument.Orientation |
LONGITUDE
|
| Fields inherited from class tecgraf.javautils.gui.field.AbstractRegexField |
|---|
ANY_STRING_REGEX |
| Fields inherited from class javax.swing.JTextField |
|---|
notifyAction |
| Fields inherited from class javax.swing.text.JTextComponent |
|---|
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, 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 javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
LatLongField(LatLongDocument.Orientation orientation)
Default: exibir erro em validação desligado ; quantidade de casas decimais para segundos é 2 ; representando hemisfério via sinal de negativo |
|
LatLongField(LatLongDocument.Orientation orientation,
boolean showValidation)
Default: quantidade de casas decimais para segundos é 2 ; representando hemisfério via sinal de negativo |
|
LatLongField(LatLongDocument.Orientation orientation,
boolean showValidation,
boolean hemisphereEnabled)
Default: quantidade de casas decimais para segundos é 2 |
|
LatLongField(LatLongDocument.Orientation orientation,
int decimal)
Default: exibir erro em validação é false ; representando hemisfério via sinal de negativo |
|
LatLongField(LatLongDocument.Orientation orientation,
int decimal,
boolean showValidation)
Default: representando hemisfério via sinal de negativo |
|
LatLongField(LatLongDocument.Orientation orientation,
int decimal,
boolean showValidation,
boolean hemisphereEnabled)
Construtor |
|
| Method Summary | |
|---|---|
Integer |
getDegree()
Retorna o grau |
Integer |
getMinute()
Retorna os minutos |
Float |
getSecond()
Retorna os segundos. |
boolean |
isHemisphereEnabled()
|
boolean |
isValidValue()
Verifica se o valor do campo é válido. |
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 |
void |
setDocument(Document doc)
|
| Methods inherited from class tecgraf.javautils.gui.field.AbstractRegexField |
|---|
enableBackgroundError, getRegexDocument, setBackgroundError, setBackgroundError, setBackgroundErrorColor, setForegroundError, setForegroundErrorColor, setText |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final LatLongDocument.Orientation LATITUDE
public static final LatLongDocument.Orientation LONGITUDE
| Constructor Detail |
|---|
public LatLongField(LatLongDocument.Orientation orientation)
orientation -
public LatLongField(LatLongDocument.Orientation orientation,
int decimal)
orientation - decimal - quantidade de casas decimais para segundos
public LatLongField(LatLongDocument.Orientation orientation,
boolean showValidation)
orientation - showValidation - exibir erro em validação
public LatLongField(LatLongDocument.Orientation orientation,
boolean showValidation,
boolean hemisphereEnabled)
orientation - showValidation - exibir erro em validaçãohemisphereEnabled - representar hemisfério via sinal de negativo
public LatLongField(LatLongDocument.Orientation orientation,
int decimal,
boolean showValidation)
orientation - decimal - quantidade de casas decimais para segundosshowValidation - exibir erro em validação
public LatLongField(LatLongDocument.Orientation orientation,
int decimal,
boolean showValidation,
boolean hemisphereEnabled)
orientation - decimal - quantidade de casas decimais para segundosshowValidation - exibir erro em validação| Method Detail |
|---|
public void setAutoComplete(boolean complete)
complete - public boolean isValidValue()
AbstractRegexField
isValidValue in class AbstractRegexFieldpublic void setDecimal(int decimal)
decimal - public Integer getDegree()
public Integer getMinute()
public Float getSecond()
public void setDocument(Document doc)
setDocument in class JTextFieldpublic boolean isHemisphereEnabled()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||