|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.alkacon.diff.HtmlDiffConfiguration
public class HtmlDiffConfiguration
Default Html Diff operation configuration class.
| Constructor Summary | |
|---|---|
HtmlDiffConfiguration(I_DiffConfiguration baseConf)
Creates a new configuration object. |
|
| Method Summary | |
|---|---|
java.lang.String |
getDivStyleName(DiffLineType type)
Returns the style name to format a whole line. |
int |
getLinesBeforeSkip()
Returns the number of lines to show before skipping. |
java.lang.String |
getMessageEqualLinesSkipped(int lines)
Returns a localized message like '({0} equal lines skipped)'. |
java.lang.String |
getSpanStyleName(DiffLineType type)
Returns the style name to format a block in a line. |
void |
setDivStyleNames(java.lang.String unchanged,
java.lang.String added,
java.lang.String removed,
java.lang.String skipped)
Sets all div style names. |
void |
setSpanStyleNames(java.lang.String unchanged,
java.lang.String added,
java.lang.String removed)
Sets all span style names. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HtmlDiffConfiguration(I_DiffConfiguration baseConf)
baseConf - base configuration| Method Detail |
|---|
public java.lang.String getDivStyleName(DiffLineType type)
I_HtmlDiffConfiguration
getDivStyleName in interface I_HtmlDiffConfigurationtype - the line type, can be any DiffLineType
I_HtmlDiffConfiguration.getDivStyleName(com.alkacon.diff.DiffLineType)public int getLinesBeforeSkip()
I_DiffConfiguration
Use -1 to show all lines.
getLinesBeforeSkip in interface I_DiffConfigurationI_DiffConfiguration.getLinesBeforeSkip()public java.lang.String getMessageEqualLinesSkipped(int lines)
I_DiffConfiguration
getMessageEqualLinesSkipped in interface I_DiffConfigurationlines - the number of skipped lines
I_DiffConfiguration.getMessageEqualLinesSkipped(int)public java.lang.String getSpanStyleName(DiffLineType type)
I_HtmlDiffConfiguration
getSpanStyleName in interface I_HtmlDiffConfigurationtype - the line type, can not be DiffLineType.SKIPPED
I_HtmlDiffConfiguration.getSpanStyleName(com.alkacon.diff.DiffLineType)
public void setDivStyleNames(java.lang.String unchanged,
java.lang.String added,
java.lang.String removed,
java.lang.String skipped)
unchanged - style for unchanged linesadded - style for added linesremoved - style for removed linesskipped - style for skipped lines
public void setSpanStyleNames(java.lang.String unchanged,
java.lang.String added,
java.lang.String removed)
unchanged - style for unchanged textadded - style for added textremoved - style for removed text
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||