|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.mmm.util.cli.api.CliOutputSettings
public class CliOutputSettings
This class represents the settings for the
help output
.
Field Summary | |
---|---|
private String |
lineSeparator
|
private Locale |
locale
|
private static int |
MIN_WIDTH
The minimum value for width . |
private NlsTemplateResolver |
templateResolver
|
private int |
width
|
Constructor Summary | |
---|---|
CliOutputSettings()
The constructor. |
|
CliOutputSettings(int width)
The constructor. |
Method Summary | |
---|---|
String |
getLineSeparator()
|
Locale |
getLocale()
This method gets the Locale used to nationalize the output. |
NlsTemplateResolver |
getTemplateResolver()
|
int |
getWidth()
This method gets the width of the help-output in
characters per line. |
void |
setLineSeparator(String lineSeparator)
|
void |
setLocale(Locale locale)
This method sets the locale to use. |
void |
setTemplateResolver(NlsTemplateResolver templateResolver)
|
void |
setWidth(int width)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final int MIN_WIDTH
width
.
private int width
getWidth()
private String lineSeparator
getLineSeparator()
private Locale locale
getLocale()
private NlsTemplateResolver templateResolver
getTemplateResolver()
Constructor Detail |
---|
public CliOutputSettings()
public CliOutputSettings(int width)
width
- is the width
.Method Detail |
---|
public int getWidth()
help-output
in
characters per line.
public void setWidth(int width)
width
- is the width
to set.public String getLineSeparator()
public void setLineSeparator(String lineSeparator)
lineSeparator
- is the lineSeparator to setpublic Locale getLocale()
Locale
used to nationalize the output. By
default Locale.getDefault()
ist used.
Locale
.public void setLocale(Locale locale)
locale
to use.
locale
- is the locale to setpublic NlsTemplateResolver getTemplateResolver()
public void setTemplateResolver(NlsTemplateResolver templateResolver)
templateResolver
- is the templateResolver to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |