|
LPEX 3.6.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LpexFieldsProvider
Interface LpexFieldsProvider defines a provider of field settings for the text elements in a document view. Editing fields are usually defined for column-sensitive editing in source documents of programming languages such as RPG.
The fields editor parameter is scoped to the document view. It is, therefore, suitable for defining editing fields which are uniform across the entire document, or for current-line editing operations when the application editor sets a new fields value each time the cursor moves to a new line. It cannot, however, handle situations in which an editing operation (such as a document-wide find and replace) operates on various text lines with different field settings.
Create a class that implements this interface, and register an instance of it in each document view of interest. When asked for the editing fields in a given element, return an array of the corresponding start columns.
When an LpexFieldsProvider is set in a document view, the fields parameter is not used by the editor for that view.
LpexView.setFieldsProvider(com.ibm.lpex.core.LpexFieldsProvider)
Method Summary | |
---|---|
int[] |
getFields(LpexView lpexView,
int element)
This method is invoked when the editor must query the editing fields defined for a text element. |
Method Detail |
---|
int[] getFields(LpexView lpexView, int element)
lpexView
- the document viewelement
- the ordinal of the text element for which the fields setting
is queried
null
if no editing fields are defined for this element
|
LPEX 3.6.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |