View Javadoc
1 package org.cyberiantiger.mudclient.config; 2 3 import java.util.Properties; 4 5 public class OutputConfiguration { 6 7 private String name; 8 private int width; 9 private int height; 10 private int buffer; 11 private boolean floating; 12 private boolean visible; 13 private boolean visibleOnOutput; 14 private boolean keepInput; 15 16 public OutputConfiguration() { 17 } 18 19 public void load(Properties props, String name) { 20 this.name = name; 21 this.width = Integer.parseInt( 22 props.getProperty("output."+name+".width","80")); 23 this.height = Integer.parseInt( 24 props.getProperty("output."+name+".height","25")); 25 this.buffer = Integer.parseInt( 26 props.getProperty("output."+name+".buffer","2000")); 27 this.floating = "yes".equals( 28 props.getProperty("output."+name+".float","no")); 29 this.visible = "yes".equals( 30 props.getProperty("output."+name+".visible","yes")); 31 this.visibleOnOutput = "yes".equals( 32 props.getProperty("output."+name+".visibleOnOutput","no")); 33 this.keepInput = "yes".equals( 34 props.getProperty("output."+name+".keepInput","no")); 35 } 36 37 public String getName() { 38 return name; 39 } 40 41 public int getWidth() { 42 return width; 43 } 44 45 public int getHeight() { 46 return height; 47 } 48 49 public int getBuffer() { 50 return buffer; 51 } 52 53 public boolean getFloating() { 54 return floating; 55 } 56 57 public boolean getVisible() { 58 return visible; 59 } 60 61 public boolean getVisibleOnOutput() { 62 return visibleOnOutput; 63 } 64 65 public boolean keepInput() { 66 return keepInput; 67 } 68 }

This page was automatically generated by Maven