mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
53 lines
1.3 KiB
Java
53 lines
1.3 KiB
Java
package org.diylc;
|
|
|
|
import java.io.File;
|
|
import java.util.ArrayList;
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Set;
|
|
|
|
import org.diylc.common.PropertyWrapper;
|
|
import org.diylc.core.IView;
|
|
|
|
public class MockView implements IView {
|
|
|
|
private Map<Integer, List<String>> messages = new HashMap<Integer, List<String>>();
|
|
|
|
@Override
|
|
public void showMessage(String message, String title, int messageType) {
|
|
messages.putIfAbsent(messageType, new ArrayList<String>());
|
|
messages.get(messageType).add(message);
|
|
}
|
|
|
|
public Map<Integer, List<String>> getMessages() {
|
|
return messages;
|
|
}
|
|
|
|
@Override
|
|
public int showConfirmDialog(String message, String title, int optionType, int messageType) {
|
|
// TODO Auto-generated method stub
|
|
return 0;
|
|
}
|
|
|
|
@Override
|
|
public boolean editProperties(List<PropertyWrapper> properties,
|
|
Set<PropertyWrapper> defaultedProperties, String title) {
|
|
// TODO Auto-generated method stub
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public File promptFileSave() {
|
|
// TODO Auto-generated method stub
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public String showInputDialog(String message, String title) {
|
|
// TODO Auto-generated method stub
|
|
return null;
|
|
}
|
|
|
|
}
|