Project:DUI

Class List Class Hierarchy
Summary: Ctors Methods Mixins

Module dui.Editable

Interface Editable

Extend interfaces:


public interface

Editable



The interface class for editable widgets.
\todo this should be related with the EditableListener but implementation actualy is separated into EditableListener and EntryListener - still missing editable listener for (for instance) Combo...

Methods Summary
public void setData(String key, gpointer data)
          
static ObjectG getObjectG(void* gtkwidget)
          
void selectRegion(gint start, gint end)
          
void insertText(String text, gint length, gint* position)
          Insert text
void deleteText(gint startPos, gint endPos)
          Deletes text
String getChars(gint startPos, gint endPos)
          Gets a substring
void cutClipboard()
          Copies the text content to the clipboard and remove it from the widget (selected only???)
void copyClipboard()
          Copies the text content into the clip board (selected only???)
void pasteClipboard()
          Pastes the clipborad contents into the widget
void deleteSelection()
          Deletes the selected text
void setPosition(int position)
          sets the cursor position ???
gint getPosition()
          get position
void setEditable(bit isEditable)
          Sets the editable state
bit getEditable()
          gets the editable state


setData

public void setData(String key, gpointer data)

getObjectG

static ObjectG getObjectG(void* gtkwidget)

selectRegion

void selectRegion(gint start, gint end)

insertText

void insertText(String text, gint length, gint* position)
Insert text

Parameters:
text - the text to insert
length - the number of chars to insert
position - the position on the existing to where to insert the new text

deleteText

void deleteText(gint startPos, gint endPos)
Deletes text

Parameters:
startPos -
endPos -

getChars

String getChars(gint startPos, gint endPos)
Gets a substring

Parameters:
startPos -
endPos -

cutClipboard

void cutClipboard()
Copies the text content to the clipboard and remove it from the widget (selected only???)

copyClipboard

void copyClipboard()
Copies the text content into the clip board (selected only???)

pasteClipboard

void pasteClipboard()
Pastes the clipborad contents into the widget

deleteSelection

void deleteSelection()
Deletes the selected text

setPosition

void setPosition(int position)
sets the cursor position ???

Parameters:
position - the cursor position

getPosition

gint getPosition()
get position

Returns:
the position of the cursor ???

setEditable

void setEditable(bit isEditable)
Sets the editable state

Parameters:
isEditable - the new editable state - use false to prevent the user to change the text content

getEditable

bit getEditable()
gets the editable state

Returns:
true if entry is editable