org.vishia.gral.base

## Class GralMng.PosThreadSafe

- java.lang.Object
- - org.vishia.gral.base.GralMng.PosThreadSafe

- Enclosing class:
    GralMng

      static final class GralMng.PosThreadSafe
      extends java.lang.Object

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected GralPos` | `pos` Position of the next widget to add.
    `protected boolean` | `posUsed` False if the position is given newly.
    `(package private) long` | `threadId`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `PosThreadSafe()`
    `PosThreadSafe(GralPos exists)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### pos

          protected final GralPos pos

      Position of the next widget to add. If some widgets are added one after another, it is similar like a flow-layout. But the position can be set. The values inside the position are positive in any case, so that the calculation of size is simple.

    - #### posUsed

          protected boolean posUsed

      False if the position is given newly. True if it is used. Then the next add-widget invocation calculates the next position in direction see `GralPos.setNextPosition()`.

    - #### threadId

          final long threadId

  - ### Constructor Detail

    - #### PosThreadSafe

          PosThreadSafe()

    - #### PosThreadSafe

          PosThreadSafe(GralPos exists)

  - ### Method Detail

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`