package com.baselet.gwt.client.view.widgets.propertiespanel;

import com.baselet.gui.AutocompletionText;
import com.google.gwt.user.client.ui.SuggestOracle.Suggestion;

public class MySuggestion implements Suggestion {

	private AutocompletionText autoCompletionText;

	public MySuggestion(AutocompletionText autoCompletionText) {
		this.autoCompletionText = autoCompletionText;
	}

	@Override
	public String getDisplayString() {
		return autoCompletionText.getHtmlInfo();
	}

	@Override
	public String getReplacementString() {
		return autoCompletionText.getText();
	}

}