|
![]() |
||||||||
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
argutia.gui.Representation
public class Representation
Une représentation est la représentation textuelle d'une unité syntaxique configurable. Cela comprend :
ConfigurableSyntacticUnit
,
Serialized FormConfigurableSyntacticUnit
sont candidates
au statut d'objets immuables, ce qui n'est pas le cas de celles de la
classe Representation
.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.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.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
static int |
COLUMNS
The number of columns to use to calculate the preferred width. |
private String |
denomination
Nom de l'unité syntaxique configurable. |
private String |
enhanced
|
private String |
oldOrthographe
Ancienne syntaxe de l'unité syntaxique configurable. |
private String |
orthographe
Orthographe de l'unité syntaxique configurable. |
private static long |
serialVersionUID
The serial version of this class. |
private String |
spellingInFile
Orthographe de l'unité syntaxique configurable au sein des fichiers d'exemples. |
private ConfigurableSyntacticUnit |
uniteSyntaxiqueConfigurable
Unité syntaxique configurable représentée par cette instance. |
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 | |
---|---|
Representation(ConfigurableSyntacticUnit uniteSyntaxiqueConfigurable,
String orthographe)
Crée la représentation textuelle d'une unité syntaxique configurable. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
String |
getDenomination()
Retourne la dénomination, l'intitulé de l'unité syntaxique configurable associée à la représentation. |
String |
getOldOrthographe()
Retourne l'ancienne orthographe de l'unité syntaxique configurable associée à la représentation. |
String |
getOrthographe()
Retourne l'orthographe de l'unité syntaxique configurable associée à la représentation. |
String |
getSpellingInFile()
Retourne la dénomination au sein des fichiers d'exemples de l'unité syntaxique configurable associée à la représentation. |
ConfigurableSyntacticUnit |
getUniteSyntaxique()
Retourne l'unité syntaxique configurable associée à la représentation. |
int |
hashCode()
|
void |
ouvertureDeFichier()
Prépare l'unité syntaxique configurable associée à la représentation lors de l'ouverture d'un fichier pour effectuer la liaison entre son orthographe dans le fichier et celle dans l'application. |
boolean |
setOrthographe(String newOrthographe)
Met à jour à l'aide du paramètre newOrthographe l'orthographe de
l'unité syntaxique configurable
associée à la représentation. |
String |
toString()
Retourne l' orthographe de l'instance. |
void |
toStyledString(BatchStyledDocument doc)
Ajoute du style au résultat d'un appel à toString() et l'ajoute au
BatchedContent passé en paramètre. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
Serializable
,
Constant Field Values-1873116156721554427L
public static final int COLUMNS
JTextField.JTextField(int)
,
Constant Field Values5
private final ConfigurableSyntacticUnit uniteSyntaxiqueConfigurable
private final String denomination
private String orthographe
private String oldOrthographe
private final String spellingInFile
private final String enhanced
Constructor Detail |
---|
public Representation(ConfigurableSyntacticUnit uniteSyntaxiqueConfigurable,
String orthographe)
uniteSyntaxiqueConfigurable
- unité syntaxique configurable pour laquelle on crée cette représentation.denomination
- dénomination, intitulé de l'unité syntaxique configurable associée.orthographe
- orthographe de l'unité syntaxique configurable associée.spellingInFile
- dénomination au sein des fichiers d'exemples de l'unité syntaxique configurable associée.Method Detail |
---|
public ConfigurableSyntacticUnit getUniteSyntaxique()
public String getDenomination()
public String getOrthographe()
public boolean setOrthographe(String newOrthographe)
newOrthographe
l'orthographe de
l'unité syntaxique configurable
associée à la représentation.
Retourne true
s'il s'agit effectivement d'une nouvelle orthographe.
newOrthographe
- nouvelle orthographe de l'unité syntaxique configurable associée.
true
si et seulement si :
getOrthographe().equals(newOrthographe) == false
public String getOldOrthographe()
setOrthographe(String)
.
public String getSpellingInFile()
public void ouvertureDeFichier()
Files.load(java.io.File)
,
Representations#ouvertureDeFichier()
oldOrthographe = spellingInFile;
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
public String toString()
orthographe
de l'instance.
toString
in class Component
orthographe
de l'instance.public void toStyledString(BatchStyledDocument doc)
toString()
et l'ajoute au
BatchedContent
passé en paramètre.
toStyledString
in interface AffichableAvecStyle
MyStyles
content
- BatchedContent
auquel on veut ajouter du texte mis en forme.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |