Export to GitHub

lanterna - issue #76

LayoutParameter constructor protected


Posted on Jul 12, 2013 by Swift Dog

The constructor of the class LayoutParameter in package com.googlecode.lanterna.gui.layout should not be package protected but public. If it is package protected it's not possible to write specialized LayoutManagers with their own LayoutParamters.

I know it should be prevented that the LayoutManagers are used with wrong LayoutParameters or that users think they should create new Parameters every time. But this has to be done different than with this package protection. For example with a check on the used LayoutParameters.

Comment #1

Posted on Jul 15, 2013 by Grumpy Ox

I've changed it now on 2.1.x-branch to protected

Status: Fixed

Labels:
Type-Defect Priority-Medium