Package org.daisy.braille.embosser
Class EmbosserWriterEvent.OpenEvent
java.lang.Object
org.daisy.braille.embosser.EmbosserWriterEvent
org.daisy.braille.embosser.EmbosserWriterEvent.OpenEvent
- Enclosing class:
- EmbosserWriterEvent
Provides an object representation for an EmbosserWriter open event
- Author:
- Joel HÃ¥kansson
-
Nested Class Summary
Nested classes/interfaces inherited from class org.daisy.braille.embosser.EmbosserWriterEvent
EmbosserWriterEvent.CloseEvent, EmbosserWriterEvent.NewLineEvent, EmbosserWriterEvent.NewPageEvent, EmbosserWriterEvent.NewSectionAndPageEvent, EmbosserWriterEvent.NewVolumeSectionAndPageEvent, EmbosserWriterEvent.OpenEvent, EmbosserWriterEvent.SetRowGapEvent, EmbosserWriterEvent.WriteEvent
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the contract for the eventboolean
boolean
Returns true if a contract has been definedMethods inherited from class org.daisy.braille.embosser.EmbosserWriterEvent
getEventType
-
Constructor Details
-
OpenEvent
public OpenEvent(boolean duplex) Creates a new OpenEvent with no contract- Parameters:
duplex
-
-
OpenEvent
Creates a new OpenEvent- Parameters:
duplex
-contract
-
-
-
Method Details
-
getContract
Gets the contract for the event- Returns:
- returns the contract for the event, or null if no contract exist
-
hasContract
public boolean hasContract()Returns true if a contract has been defined- Returns:
- returns true if a contract has been defined, false otherwise
-
getDuplex
public boolean getDuplex()
-