public class ColumnWidthImpl extends Object implements org.refcodes.mixin.mixins.WidthAccessor, ColumnWidth
Constructor and Description |
---|
ColumnWidthImpl(int aWidth,
WidthType aWidthType)
Constructs a column's width, either in percent (%) or in number of
chars.
|
Modifier and Type | Method and Description |
---|---|
int |
getWidth()
The width of the column either in percent (%) or in number of chars,
depending on the provided
WidthType . |
WidthType |
getWidthType()
The type of the width being provided, either percent (%) or number of
chars.
|
String |
toString() |
public ColumnWidthImpl(int aWidth, WidthType aWidthType)
aWidth
- The width for the column, either in percent (%) or in
number of chars, depending on the provided
WidthType
.aWidthType
- The type of the width being provided, either
percent (%) or number of chars.public int getWidth()
WidthType
.getWidth
in interface org.refcodes.mixin.mixins.WidthAccessor
getWidth
in interface ColumnWidth
ColumnWidth.getWidthType()
.public WidthType getWidthType()
getWidthType
in interface ColumnWidth
Copyright © 2015. All rights reserved.