This repository has been archived by the owner on Aug 4, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename irregularly changed classes (#31)
This change updates package paths for the classes Range and PropertyId, which do not follow the standard pattern of prepending v7. Fixes #27, fixes #30
- Loading branch information
Showing
3 changed files
with
76 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
test-projects/random-files/src/main/java/com/vaadin/random/files/LabelModes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package com.vaadin.random.files; | ||
|
||
import com.vaadin.data.fieldgroup.PropertyId; | ||
import com.vaadin.shared.ui.label.ContentMode; | ||
import com.vaadin.ui.Label; | ||
|
||
public class LabelModes extends com.vaadin.ui.VerticalLayout { | ||
|
||
@PropertyId("mine") | ||
public Label myLabel; | ||
|
||
protected void initializeComponents() { | ||
|
||
Label l; | ||
l = new Label( | ||
"This is an undefined wide label with default content mode"); | ||
l.setWidth(null); | ||
addComponent(l); | ||
|
||
l = new Label( | ||
"This label contains\nnewlines and spaces\nbut is in\ndefault content mode"); | ||
l.setWidth(null); | ||
addComponent(l); | ||
|
||
l = new Label( | ||
"This label contains\nnewlines and spaces\nand is in\npreformatted mode"); | ||
l.setContentMode(ContentMode.PREFORMATTED); | ||
l.setWidth(null); | ||
addComponent(l); | ||
|
||
l = new Label( | ||
"This label contains\nnewlines and spaces\nand is in\nhtml mode"); | ||
l.setContentMode(ContentMode.HTML); | ||
l.setWidth(null); | ||
addComponent(l); | ||
|
||
} | ||
|
||
} |