C# Class AspNetEdit.UI.PropertyEditors.BaseEditor

Exibir arquivo Open project: mono/aspeditor Class Usage Examples

Protected Properties

Property Type Description
parentRow GridRow

Public Methods

Method Description
BaseEditor ( GridRow parentRow ) : System
GetDisplayWidget ( ) : Gtk.Widget

Displays the property's current value. Default implementation is simply ToString().

GetEditWidget ( ) : Gtk.Widget

Edits the property's value. Must be overridden if InPlaceEdit is true.

LaunchDialogue ( ) : void

Opens a dialogue box which sets the property's value. Must be overridden if DialogueEdit is true.

Protected Methods

Method Description
IsDefaultValue ( ) : bool

Checks whether the current value of this property is the default value. Use to decide whether to make value bold to indicate this.

StringValue ( object value ) : Gtk.Widget

A Gtk.Label suitable for returning by GetDisplayWidget (). Handles nulls.

StringValue ( string value, bool markup ) : Gtk.Widget

A Gtk.Label suitable for returning by GetDisplayWidget(). Handles nulls.

Method Details

BaseEditor() public method

public BaseEditor ( GridRow parentRow ) : System
parentRow GridRow
return System

GetDisplayWidget() public method

Displays the property's current value. Default implementation is simply ToString().
public GetDisplayWidget ( ) : Gtk.Widget
return Gtk.Widget

GetEditWidget() public method

Edits the property's value. Must be overridden if InPlaceEdit is true.
public GetEditWidget ( ) : Gtk.Widget
return Gtk.Widget

IsDefaultValue() protected method

Checks whether the current value of this property is the default value. Use to decide whether to make value bold to indicate this.
protected IsDefaultValue ( ) : bool
return bool

LaunchDialogue() public method

Opens a dialogue box which sets the property's value. Must be overridden if DialogueEdit is true.
public LaunchDialogue ( ) : void
return void

StringValue() protected method

A Gtk.Label suitable for returning by GetDisplayWidget (). Handles nulls.
protected StringValue ( object value ) : Gtk.Widget
value object The new property value Label.
return Gtk.Widget

StringValue() protected method

A Gtk.Label suitable for returning by GetDisplayWidget(). Handles nulls.
protected StringValue ( string value, bool markup ) : Gtk.Widget
value string The new property value Label.
markup bool Whether to use GTK markup on the label
return Gtk.Widget

Property Details

parentRow protected_oe property

protected GridRow parentRow
return GridRow