Class EmbosserWriterEvent.OpenEvent

java.lang.Object
org.daisy.braille.embosser.EmbosserWriterEvent
org.daisy.braille.embosser.EmbosserWriterEvent.OpenEvent
Enclosing class:
EmbosserWriterEvent

public static class EmbosserWriterEvent.OpenEvent extends EmbosserWriterEvent
Provides an object representation for an EmbosserWriter open event
Author:
Joel HÃ¥kansson
  • Constructor Details

    • OpenEvent

      public OpenEvent(boolean duplex)
      Creates a new OpenEvent with no contract
      Parameters:
      duplex -
    • OpenEvent

      public OpenEvent(boolean duplex, Contract contract)
      Creates a new OpenEvent
      Parameters:
      duplex -
      contract -
  • Method Details

    • getContract

      public Contract 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()