Goto Chapter: Top 1 2 3 4 5 6 7 8 9 10 Ind
 [Top of Book]  [Contents]   [Previous Chapter]   [Next Chapter] 

8 Francy Messages
 8.1 Categories
 8.2 Families
 8.3 Representations
 8.4 Operations
 8.5 Global
 8.6 Attributes

8 Francy Messages

FrancyMessage is an object that holds a message.

These messages can be used to provide information to users in the form of SUCCESS, INFO, WARNING, ERROR. It is up to the client implementation to handle these messages and their types in a fashionable manner. Please see Francy-JS for client implementation.

8.1 Categories

In this section we show all Francy FrancyMessage Categories.

8.1-1 IsFrancyMessage
‣ IsFrancyMessage( arg )( filter )

Returns: true or false

Identifies FrancyMessage objects.

8.1-2 IsFrancyMessageType
‣ IsFrancyMessageType( arg )( filter )

Returns: true or false

Identifies MessageType objects.

8.2 Families

In this section we show all Francy FrancyMessage Families.

8.3 Representations

In this section we show all Francy FrancyMessage Representations.

8.3-1 IsFrancyMessageRep
‣ IsFrancyMessageRep( arg )( filter )

Returns: true or false

Checks whether an Object has a FrancyMessage internal representation.

8.3-2 IsFrancyMessageTypeRep
‣ IsFrancyMessageTypeRep( arg )( filter )

Returns: true or false

Checks whether an Object has a FrancyMessage internal representation.

8.4 Operations

In this section we show all Francy FrancyMessage Operations.

8.4-1 FrancyMessage
‣ FrancyMessage( IsString, IsString )( operation )

Returns: FrancyMessage

Adds an info label with the format "label: value"

Examples:

Create FrancyMessage of all types within a canvas:

gap> canvas := Canvas("Example Canvas / Shape with Messages");
gap> graph := Graph(GraphType.HASSE); # will go throughout graphs later
gap> shape := Shape(ShapeType.CIRCLE); # will go throughout shapes later
gap> Add(graph, shape);
gap> Add(canvas, graph);
gap> Add(canvas, FrancyMessage(FrancyMessageType.INFO, "Hello"));
gap> Add(shape, FrancyMessage(FrancyMessageType.INFO, "Hello"));
gap> Add(canvas, FrancyMessage(FrancyMessageType.ERROR, "Oops", "Hello"));
gap> Add(shape, FrancyMessage(FrancyMessageType.ERROR, "Oops", "Hello"));
gap> Add(canvas, FrancyMessage(FrancyMessageType.WARNING, "Hello"));
gap> Add(shape, FrancyMessage(FrancyMessageType.WARNING, "Hello"));
gap> Add(canvas, FrancyMessage(FrancyMessageType.SUCCESS, "Hello"));
gap> Add(shape, FrancyMessage(FrancyMessageType.SUCCESS, "Hello"));
gap> Add(canvas, FrancyMessage("Hello", "World"));
gap> Add(shape, FrancyMessage("Hello", "World"));

8.5 Global

In this section we show all Global FrancyMessage Records for multi purpose.

8.6 Attributes

In this section we show all FrancyMessage Core Attributes

8.6-1 Title
‣ Title( arg )( attribute )

Returns: IsString with the title of the object

A title on a FrancyMessage is used to display the title information to the user.

8.6-2 Title
‣ Title( arg1 )( operation )

8.6-3 SetTitle
‣ SetTitle( IsFrancyMessage, IsString )( operation )

Sets the title of the FrancyMessage.

8.6-4 Value
‣ Value( arg )( attribute )

Returns: IsString with the title of the object

A value on a FrancyMessage is used to display the information to the user.

8.6-5 Value
‣ Value( arg1 )( operation )

8.6-6 SetValue
‣ SetValue( IsFrancyMessage, IsString )( operation )

Sets the actual message of the FrancyMessage.

8.6-7 Add
‣ Add( IsFrancyMessage[, IsCallback, List(IsCallback)] )( operation )

Returns: FrancyMessage

Add a Callback to a specific FrancyMessage.

8.6-8 Remove
‣ Remove( IsFrancyMessage[, IsCallback, List(IsCallback)] )( operation )

Returns: FrancyMessage

Remove a Callback from a specific FrancyMessage.

 [Top of Book]  [Contents]   [Previous Chapter]   [Next Chapter] 
Goto Chapter: Top 1 2 3 4 5 6 7 8 9 10 Ind

generated by GAPDoc2HTML