Skip to content

Commit

Permalink
popupable method rename
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Jun 14, 2022
1 parent 890a0c9 commit 19d36d7
Show file tree
Hide file tree
Showing 26 changed files with 27 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ public StringResourceModel getTitle() {
return createStringResource("TypedAssignablePanel.selectObjects");
}

public Component getComponent() {
public Component getContent() {
return this;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ public String getHeightUnit(){
return "%";
}

public Component getComponent(){
public Component getContent(){
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public String getHeightUnit() {
}

@Override
public Component getComponent() {
public Component getContent() {
return NewObjectCreationPopup.this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public String getHeightUnit(){
}

@Override
public Component getComponent() {
public Component getContent() {
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ public String getHeightUnit() {
}

@Override
public Component getComponent() {
public Component getContent() {
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ public String getHeightUnit() {
}

@Override
public Component getComponent() {
public Component getContent() {
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public String getHeightUnit(){
}

@Override
public Component getComponent() {
public Component getContent() {
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ public void showMainPopup(Popupable popupable, AjaxRequestTarget target) {
dialog.generateWidthHeightParameter("" + (popupable.getWidth() > 0 ? popupable.getWidth() : ""),
popupable.getWidthUnit(),
"" + (popupable.getHeight() > 0 ? popupable.getHeight() : ""), popupable.getHeightUnit())));
dialog.setContent(popupable.getComponent());
dialog.setContent(popupable.getContent());
Component footer = popupable.getFooter();
if (footer != null) {
dialog.setFooter(footer);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ public String getHeightUnit(){
}

@Override
public Component getComponent() {
public Component getContent() {
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ public String getHeightUnit() {
}

@Override
public Component getComponent() {
public Component getContent() {
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public IModel<String> getTitle() {
}

@Override
public Component getComponent() {
public Component getContent() {
return this;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public String getHeightUnit() {
}

@Override
public Component getComponent() {
public Component getContent() {
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public String getHeightUnit() {
}

@Override
public Component getComponent() {
public Component getContent() {
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public String getHeightUnit(){
}

@Override
public Component getComponent() {
public Component getContent() {
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public StringResourceModel getTitle() {
}

@Override
public Component getComponent() {
public Component getContent() {
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ public String getHeightUnit(){
}

@Override
public Component getComponent() {
public Component getContent() {
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public String getHeightUnit() {
}

@Override
public Component getComponent() {
public Component getContent() {
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public String getHeightUnit(){
}

@Override
public Component getComponent() {
public Component getContent() {
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import org.apache.wicket.Component;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.StringResourceModel;

public interface Popupable {

Expand All @@ -17,7 +16,7 @@ public interface Popupable {
String getWidthUnit();
String getHeightUnit();
IModel<String> getTitle();
Component getComponent();
Component getContent();

default Component getFooter() {
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ public String getHeightUnit() {
return "px";
}

public Component getComponent() {
public Component getContent() {
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public Boolean load() {
}
};
}

@Override
protected void onOrgTreeCheckBoxSelectionPerformed(AjaxRequestTarget target, IModel<TreeSelectableBean<OrgType>> rowModel){
if (rowModel != null && rowModel.getObject() != null) {
Expand Down Expand Up @@ -250,7 +250,7 @@ public String getHeightUnit(){
}

@Override
public Component getComponent() {
public Component getContent() {
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ public String getHeightUnit(){
}

@Override
public Component getComponent() {
public Component getContent() {
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ public StringResourceModel getTitle() {
}

@Override
public Component getComponent() {
public Component getContent() {
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public String getHeightUnit(){
}

@Override
public Component getComponent() {
public Component getContent() {
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public String getHeightUnit() {
}

@Override
public Component getComponent() {
public Component getContent() {
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public String getHeightUnit(){
}

@Override
public Component getComponent() {
public Component getContent() {
return this;
}

Expand Down

0 comments on commit 19d36d7

Please sign in to comment.